New creates a new PocketBase instance with the default configuration. Use [NewWithConfig] if you want to provide a custom configuration. Note that the application will not be initialized/bootstrapped yet, aka. DB connections, migrations, app settings, etc. will not be accessible. Everything will be
()
| 71 | // If you want to initialize the application before calling [PocketBase.Start], |
| 72 | // then you'll have to manually call [PocketBase.Bootstrap]. |
| 73 | func New() *PocketBase { |
| 74 | _, isUsingGoRun := inspectRuntime() |
| 75 | |
| 76 | return NewWithConfig(Config{ |
| 77 | DefaultDev: isUsingGoRun, |
| 78 | }) |
| 79 | } |
| 80 | |
| 81 | // NewWithConfig creates a new PocketBase instance with the provided config. |
| 82 | // |