Skip to content

Commit 6b1e943

Browse files
authored
no process.env.{HOSTNAME,PORT} (#854)
1 parent 3f09fab commit 6b1e943

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

bin/observable.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,10 @@ try {
128128
...CONFIG_OPTION,
129129
host: {
130130
type: "string",
131-
default: process.env.HOSTNAME ?? "127.0.0.1"
131+
default: "127.0.0.1"
132132
},
133133
port: {
134-
type: "string",
135-
default: process.env.PORT
134+
type: "string"
136135
},
137136
open: {
138137
type: "boolean",

test/preview/preview-test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import type {PreviewOptions, PreviewServer} from "../../src/preview.js";
66
import {mockJsDelivr} from "../mocks/jsdelivr.js";
77

88
const testHostRoot = "test/preview/dashboard";
9-
const testHostName = process.env.TEST_HOSTNAME ?? "127.0.0.1";
10-
const testPort = +(process.env.TEST_PORT ?? 8080);
9+
const testHostName = "127.0.0.1";
10+
const testPort = 3000;
1111

1212
const testServerOptions: PreviewOptions = {
1313
config: await normalizeConfig({root: testHostRoot}),

0 commit comments

Comments
 (0)