mirror of
https://github.com/pockethost/pockethost.git
synced 2025-06-24 15:02:31 +00:00
dashboard ioc fix
This commit is contained in:
parent
4c43f9edc5
commit
c13a493e5b
@ -6,7 +6,7 @@
|
||||
"scripts": {
|
||||
"check:types": "svelte-check",
|
||||
"preview": "npx http-server@latest ../../dist/dashboard -P \"http://localhost:8080?\"",
|
||||
"dev": "vite dev --force --host=0.0.0.0 --port=5174",
|
||||
"dev": "vite dev",
|
||||
"build": "NODE_ENV=production vite build",
|
||||
"lint": "prettier --check .",
|
||||
"format": "prettier --write ."
|
||||
|
@ -9,7 +9,7 @@ import { InstanceFields } from 'pockethost/common'
|
||||
|
||||
// The apex domain of this whole operation.
|
||||
export const PUBLIC_APEX_DOMAIN =
|
||||
import.meta.env.PUBLIC_APEX_DOMAIN || `pockethost.lvh.me`
|
||||
import.meta.env.PUBLIC_APEX_DOMAIN || `pockethost.io`
|
||||
|
||||
// The domain name where this dashboard lives
|
||||
export const PUBLIC_APP_URL =
|
||||
|
@ -1,12 +0,0 @@
|
||||
import { LoggerService, LogLevelName } from 'pockethost/common'
|
||||
import { PUBLIC_DEBUG } from './env'
|
||||
|
||||
// Initiate the logging service
|
||||
// TODO: Document this
|
||||
try {
|
||||
LoggerService()
|
||||
} catch {
|
||||
LoggerService({
|
||||
level: PUBLIC_DEBUG ? LogLevelName.Debug : LogLevelName.Info,
|
||||
})
|
||||
}
|
@ -1,19 +1,23 @@
|
||||
import { PUBLIC_DEBUG } from '$src/env'
|
||||
import { client } from '$src/pocketbase-client'
|
||||
import consoleLogger from '@pockethost/plugin-console-logger'
|
||||
import {
|
||||
ConsoleLogger,
|
||||
LogLevelName,
|
||||
SubscriptionType,
|
||||
UserFields,
|
||||
loadPlugins,
|
||||
ioc,
|
||||
type InstanceFields,
|
||||
type InstanceId,
|
||||
type UnsubscribeFunc,
|
||||
} from 'pockethost/common'
|
||||
import { writable } from 'svelte/store'
|
||||
// TODO: Removing this will cause the app to crash
|
||||
// Theres a reference inside of `createPocketbaseClient.ts` that needs the information that comes from this file
|
||||
import '../services'
|
||||
|
||||
loadPlugins([consoleLogger])
|
||||
ioc(
|
||||
`logger`,
|
||||
new ConsoleLogger({
|
||||
level: PUBLIC_DEBUG ? LogLevelName.Debug : LogLevelName.Info,
|
||||
}),
|
||||
)
|
||||
|
||||
const { onAuthChange } = client()
|
||||
|
||||
|
@ -12,6 +12,7 @@ const config: UserConfig = {
|
||||
server: {
|
||||
port: 5174,
|
||||
strictPort: true,
|
||||
host: 'app.pockethost.lvh.me',
|
||||
hmr: {
|
||||
clientPort: 5174,
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user