chore(pockethost): Clean up dead code

This commit is contained in:
Ben Allfree 2024-06-29 17:15:03 -07:00
parent 45a8f457da
commit b55c585e8a
2 changed files with 5 additions and 5 deletions

View File

@ -0,0 +1,5 @@
---
'pockethost': patch
---
Clean up dead code

View File

@ -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`,