mirror of
https://github.com/cupcakearmy/obolus.git
synced 2025-09-05 15:50:40 +00:00
dev environment
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
{
|
||||
"private": true,
|
||||
"assets": [
|
||||
".next/**/*"
|
||||
],
|
||||
"scripts": {
|
||||
"dev": "npm i && node server.js",
|
||||
"prod": "NODE_ENV=production node server.js",
|
||||
"build": "next build"
|
||||
"build": "next build",
|
||||
"dev": "npm install --silent && node server.js",
|
||||
"dev:local": "npm install --silent && API_HOST=localhost node server.js",
|
||||
"prod": "NODE_ENV=production node server.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"axios": "^0.18.0",
|
||||
|
@@ -12,7 +12,9 @@ const app = next({ dev })
|
||||
const handle = app.getRequestHandler()
|
||||
|
||||
const proxy = httpProxy.createProxyServer()
|
||||
const target = 'http://api'
|
||||
const target = dev
|
||||
? `http://${process.env.API_HOST || 'api'}:5000`
|
||||
: 'http://api'
|
||||
|
||||
app.prepare().then(() => {
|
||||
|
||||
|
Reference in New Issue
Block a user