wip: allow connection from docker container

This commit is contained in:
Justin Lin committed 2024-10-13 15:05:20 +08:00
1 parent 5ba0021c37
commit 4c292fd6ba
6 files changed
+36 -22

No files matched your search

+1 -1
View File
@@ -31,7 +31,7 @@ function getUrl(key: string): string {
function createConfig() {
const isProduction = process.env.NODE_ENV === 'production'
const host = get('HOST', 'localhost')
const host = get('HOST', '0.0.0.0')
const port = Number(get('PORT', 3000))
const baseUrl = get('BASE_URL', `http://${host}:${port}`)
const url = new URL(baseUrl)