We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2231a3d commit 4cd6fbeCopy full SHA for 4cd6fbe
adex/runtime/server.js
@@ -1,5 +1,6 @@
1
import { existsSync, link, readFileSync } from 'node:fs'
2
import http from 'node:http'
3
+import { env } from 'adex/env'
4
import { dirname, join } from 'node:path'
5
import { fileURLToPath } from 'node:url'
6
@@ -13,8 +14,8 @@ import 'virtual:adex:global.css'
13
14
15
const flags = mri(process.argv.slice(2))
16
-const PORT = flags.port || process.env.PORT || 3000
17
-const HOST = flags.host || process.env.HOST || 'localhost'
+const PORT = flags.port || parseInt(env.get('PORT', '3000'), 10)
18
+const HOST = flags.host || env.get('HOST', 'localhost')
19
20
const __dirname = dirname(fileURLToPath(import.meta.url))
21
0 commit comments