udpdated build config

This commit is contained in:
2021-07-16 11:25:09 +01:00
parent 7711d32ab8
commit 4e8c34de91
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": {