add working fastify server
This commit is contained in:
1 parent
066f94188a
commit
2396bbcf12
12 files changed
+3228
-58
No files matched your search
@@ -0,0 +1,10 @@
|
||||
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)
|
||||
}
|
||||
Reference in new issue
Block a user