import path from 'path'
|
|
|
|
export const port = Number(process.env['PORT'] || 16272)
|
|
|
|
export const isProduction = process.env['NODE_ENV'] === 'production'
|
|
export const isDev = !isProduction
|
|
|
|
export function getPath(...segments: string[]) {
|
|
return path.join(__dirname, '..', ...segments)
|
|
}
|