mirror of
https://github.com/pockethost/pockethost.git
synced 2025-09-16 05:30:17 +00:00
chore(pockethost): Clean up dead code
This commit is contained in:
parent
45a8f457da
commit
b55c585e8a
5
.changeset/1719706503729.md
Normal file
5
.changeset/1719706503729.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'pockethost': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Clean up dead code
|
@ -7,7 +7,6 @@ import { mkBoolean, mkCsvString, mkNumber, mkPath, mkString } from '../core'
|
|||||||
import { InstanceFields, InstanceId } from './common'
|
import { InstanceFields, InstanceId } from './common'
|
||||||
import { DEBUG, IS_DEV } from './common/debug'
|
import { DEBUG, IS_DEV } from './common/debug'
|
||||||
import { Settings } from './core/Settings'
|
import { Settings } from './core/Settings'
|
||||||
import { logSettings } from './core/logSettings'
|
|
||||||
|
|
||||||
const __dirname = dirname(fileURLToPath(import.meta.url))
|
const __dirname = dirname(fileURLToPath(import.meta.url))
|
||||||
|
|
||||||
@ -17,11 +16,7 @@ config({ path: [join(_PH_HOME, '.env'), join(cwd(), `.env`)] })
|
|||||||
|
|
||||||
export const _PH_PROJECT_DIR = join(__dirname, '..')
|
export const _PH_PROJECT_DIR = join(__dirname, '..')
|
||||||
export const _APEX_DOMAIN = process.env.APEX_DOMAIN || 'pockethost.lvh.me'
|
export const _APEX_DOMAIN = process.env.APEX_DOMAIN || 'pockethost.lvh.me'
|
||||||
export const _HTTP_PROTOCOL = process.env.HTTP_PROTOCOL || `https:`
|
|
||||||
|
|
||||||
export function isSettingKey(key: string): key is keyof typeof settings {
|
|
||||||
return key in settings
|
|
||||||
}
|
|
||||||
export const settings = Settings({
|
export const settings = Settings({
|
||||||
PH_PLUGINS: mkCsvString([
|
PH_PLUGINS: mkCsvString([
|
||||||
`@pockethost/plugin-console-logger`,
|
`@pockethost/plugin-console-logger`,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user