Skip to content

Commit 3e02a06

Browse files
committed
Make sure API_ORIGIN specified on build task
1 parent 756e8d7 commit 3e02a06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"scripts": {
33
"build:ts": "tsc -p tsconfig.production.json",
4-
"build:next": "next build",
4+
"build:next": "API_ORIGIN=http://localhost:8080 next build",
55
"prepare": "npm run clean && npm run build:ts && npm run build:next",
6-
"start": "NODE_ENV=production republic lib/app.js",
6+
"start": "NODE_ENV=production API_ORIGIN=http://localhost:8080 republic lib/app.js",
77
"dev": "tsc && NODE_ENV=development API_ORIGIN=http://localhost:8080 nodemon lib/app.js --exec republic --watch lib/",
88
"api": "cd api && make",
99
"test": "API_ORIGIN=http://api jest --notify",

0 commit comments

Comments
 (0)