Skip to content

Commit b8ec373

Browse files
author
Ives van Hoorne
committed
Don't detect port
1 parent e22415b commit b8ec373

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scripts/start.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ function openBrowser(port, protocol) {
152152
execSync('ps cax | grep "Google Chrome"');
153153
execSync('osascript chrome.applescript ' + url, {
154154
cwd: path.join(__dirname, 'utils'),
155-
stdio: 'ignore',
155+
stdio: 'ignore'
156156
});
157157
return;
158158
} catch (err) {
@@ -177,7 +177,7 @@ function addMiddleware(devServer, index) {
177177
// However API calls like `fetch()` won’t generally won’t accept text/html.
178178
// If this heuristic doesn’t work well for you, don’t use `proxy`.
179179
htmlAcceptHeaders: ['text/html'],
180-
index,
180+
index
181181
})
182182
);
183183
if (process.env.LOCAL_SERVER) {
@@ -208,12 +208,12 @@ function runDevServer(port, protocol, index) {
208208
// Reportedly, this avoids CPU overload on some systems.
209209
// https://github.com/facebookincubator/create-react-app/issues/293
210210
watchOptions: {
211-
ignored: /node_modules/,
211+
ignored: /node_modules/
212212
},
213213
// Enable HTTPS if the HTTPS environment variable is set to 'true'
214214
https: protocol === 'https',
215215
// contentBase: paths.staticPath,
216-
host: process.env.LOCAL_SERVER ? 'localhost' : 'codesandbox.dev',
216+
host: process.env.LOCAL_SERVER ? 'localhost' : 'codesandbox.dev'
217217
});
218218

219219
// Our custom middleware proxies requests to /index.html or a remote API.
@@ -245,7 +245,7 @@ function run(port) {
245245
} else {
246246
proxy.web(req, res, {
247247
target: 'http://localhost:3000/frame.html',
248-
ignorePath: true,
248+
ignorePath: true
249249
});
250250
}
251251
})

0 commit comments

Comments
 (0)