trim
This commit is contained in:
parent
436382087f
commit
377e5c31e9
|
|
@ -7,7 +7,7 @@ const devMode = process.env.NODE_ENV !== "production"
|
|||
|
||||
export default async function () {
|
||||
const { stdout: hostname } = await $`hostname`.quiet()
|
||||
let domain = devMode ? "localhost" : hostname.toString()
|
||||
let domain = (devMode ? "localhost" : hostname.toString()).trim()
|
||||
if (!devMode && !domain.endsWith(".local")) domain += ".local"
|
||||
|
||||
let port = process.env.PORT || "3000"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user