2018-06-14 17:30:14 +00:00
|
|
|
import {join} from 'path'
|
|
|
|
export const NEXT_PROJECT_ROOT = join(__dirname, '..', '..')
|
|
|
|
export const NEXT_PROJECT_ROOT_DIST = join(NEXT_PROJECT_ROOT, 'dist')
|
|
|
|
export const NEXT_PROJECT_ROOT_NODE_MODULES = join(NEXT_PROJECT_ROOT, 'node_modules')
|
|
|
|
export const DEFAULT_PAGES_DIR = join(NEXT_PROJECT_ROOT_DIST, 'pages')
|
2018-11-28 14:03:02 +00:00
|
|
|
export const NEXT_PROJECT_ROOT_DIST_CLIENT = join(NEXT_PROJECT_ROOT_DIST, 'client')
|
|
|
|
export const NEXT_PROJECT_ROOT_DIST_SERVER = join(NEXT_PROJECT_ROOT_DIST, 'server')
|
2019-01-08 22:10:32 +00:00
|
|
|
|
|
|
|
// Because on Windows absolute paths in the generated code can break because of numbers, eg 1 in the path,
|
|
|
|
// we have to use a private alias
|
|
|
|
export const PAGES_DIR_ALIAS = 'private-next-pages'
|
|
|
|
export const DOT_NEXT_ALIAS = 'private-dot-next'
|
2019-01-23 13:10:12 +00:00
|
|
|
|
|
|
|
export const PHASE_EXPORT = 'phase-export'
|
|
|
|
export const PHASE_PRODUCTION_BUILD = 'phase-production-build'
|
|
|
|
export const PHASE_PRODUCTION_SERVER = 'phase-production-server'
|
|
|
|
export const PHASE_DEVELOPMENT_SERVER = 'phase-development-server'
|