mirror of
https://github.com/pockethost/pockethost.git
synced 2025-03-30 15:08:30 +00:00
Remove unused build root from .env
This commit is contained in:
parent
079282e43a
commit
9d6f526ce3
@ -25,17 +25,15 @@ const loadedEnvs = dotenv.config({ path: `.env` })
|
||||
export const _PH_HOME =
|
||||
process.env.PH_HOME || join(process.env.HOME || resolve(`~`), `.pockethost`)
|
||||
export const _PH_PROJECT_ROOT = dirname(findUpSync('package.json')!)
|
||||
export const _PH_BUILD_ROOT = join(_PH_PROJECT_ROOT, 'dist')
|
||||
export const _IS_DEV = process.env.NODE_ENV === 'development'
|
||||
|
||||
console.log({ _PH_HOME, _PH_PROJECT_ROOT, _PH_BUILD_ROOT })
|
||||
console.log({ _PH_HOME, _PH_PROJECT_ROOT })
|
||||
|
||||
export const SETTINGS = {
|
||||
UPGRADE_MODE: mkBoolean(false),
|
||||
|
||||
PH_HOME: mkPath(_PH_HOME),
|
||||
PH_PROJECT_ROOT: mkPath(_PH_PROJECT_ROOT),
|
||||
PH_BUILD_ROOT: mkPath(_PH_BUILD_ROOT, { required: false }),
|
||||
|
||||
DEBUG: mkBoolean(_IS_DEV),
|
||||
|
||||
@ -87,11 +85,11 @@ export const SETTINGS = {
|
||||
EDGE_SECRET_KEY: mkString(),
|
||||
|
||||
INSTANCE_APP_HOOKS_DIR: mkPath(
|
||||
join(_PH_BUILD_ROOT, `instance-app`, `pb_hooks`),
|
||||
join(_PH_PROJECT_ROOT, `src`, `instance-app`, `pb_hooks`),
|
||||
{ create: true },
|
||||
),
|
||||
INSTANCE_APP_MIGRATIONS_DIR: mkPath(
|
||||
join(_PH_BUILD_ROOT, `instance-app`, `migrations`),
|
||||
join(_PH_PROJECT_ROOT, `src`, `instance-app`, `migrations`),
|
||||
{ create: true },
|
||||
),
|
||||
|
||||
@ -164,7 +162,6 @@ export const UPGRADE_MODE = () => settings().UPGRADE_MODE
|
||||
|
||||
export const PH_HOME = () => settings().PH_HOME
|
||||
export const PH_PROJECT_ROOT = () => settings().PH_PROJECT_ROOT
|
||||
export const PH_BUILD_ROOT = () => settings().PH_BUILD_ROOT
|
||||
|
||||
export const DEBUG = () => settings().DEBUG
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user