add working fastify server

This commit is contained in:
polv committed 2022-05-07 22:42:40 +07:00
1 parent 066f94188a
commit 2396bbcf12
12 files changed
+3228 -58

No files matched your search

+10
View File
@@ -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)
}