Merged PR 367: updated deployment config

Related work items: #5226
This commit is contained in:
Robert Bond
2021-07-16 10:26:35 +00:00
2 changed files with 26 additions and 22 deletions
+5 -1
View File
@@ -32,8 +32,12 @@ module.exports = withStyles({
}, },
}); });
module.exports = { module.exports = {
generateBuildId: async () => {
// You can, for example, get the latest git commit hash here
return "pinswg-build-id";
},
poweredByHeader: false, poweredByHeader: false,
env:{ env: {
// GRANT_TYPE : 'password', // GRANT_TYPE : 'password',
// USERNAME : 'api', // USERNAME : 'api',
// API_ROOT : "https://api.dev.prevent.internal.rehab", // API_ROOT : "https://api.dev.prevent.internal.rehab",
+1 -1
View File
@@ -4,7 +4,7 @@
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "next dev", "dev": "next dev",
"build": "next build", "build": "NODE_ENV=production node_modules/next/dist/bin/next build",
"start": "node_modules/next/dist/bin/next start -p $PORT" "start": "node_modules/next/dist/bin/next start -p $PORT"
}, },
"dependencies": { "dependencies": {