Skip to content

Commit d0706ff

Browse files
committed
#162 there is no ROOT_URL env var
1 parent f6df202 commit d0706ff

File tree

13 files changed

+13
-13
lines changed

13 files changed

+13
-13
lines changed

book/2-end/server/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ mongoose.connect(
2626
);
2727

2828
const port = process.env.PORT || 8000;
29-
const ROOT_URL = process.env.ROOT_URL || `http://localhost:${port}`;
29+
const ROOT_URL = `http://localhost:${port}`;
3030

3131
const app = next({ dev });
3232
const handle = app.getRequestHandler();

book/3-end/server/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ mongoose.connect(
2323
);
2424

2525
const port = process.env.PORT || 8000;
26-
const ROOT_URL = process.env.ROOT_URL || `http://localhost:${port}`;
26+
const ROOT_URL = `http://localhost:${port}`;
2727

2828
const app = next({ dev });
2929
const handle = app.getRequestHandler();

book/3-start/server/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const options = {
2626
);
2727

2828
const port = process.env.PORT || 8000;
29-
const ROOT_URL = process.env.ROOT_URL || `http://localhost:${port}`;
29+
const ROOT_URL = `http://localhost:${port}`;
3030

3131
const app = next({ dev });
3232
const handle = app.getRequestHandler();

book/4-end/server/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ mongoose.connect(
2424
);
2525

2626
const port = process.env.PORT || 8000;
27-
const ROOT_URL = process.env.ROOT_URL || `http://localhost:${port}`;
27+
const ROOT_URL = `http://localhost:${port}`;
2828

2929
const app = next({ dev });
3030
const handle = app.getRequestHandler();

book/4-start/server/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ mongoose.connect(
2222
);
2323

2424
const port = process.env.PORT || 8000;
25-
const ROOT_URL = process.env.ROOT_URL || `http://localhost:${port}`;
25+
const ROOT_URL = `http://localhost:${port}`;
2626

2727
const app = next({ dev });
2828
const handle = app.getRequestHandler();

book/5-end/server/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ mongoose.connect(
2525
);
2626

2727
const port = process.env.PORT || 8000;
28-
const ROOT_URL = process.env.ROOT_URL || `http://localhost:${port}`;
28+
const ROOT_URL = `http://localhost:${port}`;
2929

3030
const URL_MAP = {
3131
'/login': '/public/login',

book/5-start/server/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ mongoose.connect(
2424
);
2525

2626
const port = process.env.PORT || 8000;
27-
const ROOT_URL = process.env.ROOT_URL || `http://localhost:${port}`;
27+
const ROOT_URL = `http://localhost:${port}`;
2828

2929
const app = next({ dev });
3030
const handle = app.getRequestHandler();

book/6-end/server/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ mongoose.connect(
2727
);
2828

2929
const port = process.env.PORT || 8000;
30-
const ROOT_URL = process.env.ROOT_URL || `http://localhost:${port}`;
30+
const ROOT_URL = `http://localhost:${port}`;
3131

3232
const URL_MAP = {
3333
'/login': '/public/login',

book/6-start/server/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ mongoose.connect(
2525
);
2626

2727
const port = process.env.PORT || 8000;
28-
const ROOT_URL = process.env.ROOT_URL || `http://localhost:${port}`;
28+
const ROOT_URL = `http://localhost:${port}`;
2929

3030
const URL_MAP = {
3131
'/login': '/public/login',

book/7-end/server/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ mongoose.connect(
2727
);
2828

2929
const port = process.env.PORT || 8000;
30-
const ROOT_URL = process.env.ROOT_URL || `http://localhost:${port}`;
30+
const ROOT_URL = `http://localhost:${port}`;
3131

3232
const URL_MAP = {
3333
'/login': '/public/login',

0 commit comments

Comments
 (0)