Skip to content

Commit 4014027

Browse files
committed
Set client port back to 3000
Using nginx reverse proxy
1 parent 4074e8c commit 4014027

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

TODO.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,3 @@ CHORES
192192

193193
- [x] Upgrade to Babel7
194194
- [ ] Extract ReduxActions Cosmos proxy
195-
196-
Deployment
197-
198-
- [x] Change client port to 80

server/next.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ export async function startNextApp(
2828
return nextHandler(req, res);
2929
});
3030

31-
startServer(server, 80);
31+
startServer(server, 3000);
3232
}

server/start-dev-server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ attachSocket(server);
1616

1717
// CORS
1818
app.use(function(req: express$Request, res: express$Response, next) {
19-
res.header('Access-Control-Allow-Origin', 'http://localhost');
19+
res.header('Access-Control-Allow-Origin', 'http://localhost:3000');
2020
res.header('Access-Control-Allow-Credentials', 'true');
2121
res.header(
2222
'Access-Control-Allow-Headers',

web/utils/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export function Unauthorized() {
7373
function getProdBaseUrl() {
7474
// Relative paths allow us to serve the prod app from any proxy address (eg.
7575
// via ngrok), but server-side requests need to contain the host address
76-
return typeof window === 'undefined' ? 'http://localhost:80' : '';
76+
return typeof window === 'undefined' ? 'http://localhost:3000' : '';
7777
}
7878

7979
function fetchJson(urlPath: string, options?: Object): Promise<any> {

0 commit comments

Comments
 (0)