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
+25 -21
View File
@@ -18,28 +18,32 @@ const nextTranslate = require("next-translate");
// }; // };
module.exports = withStyles({ module.exports = withStyles({
sass: true, // use .scss files sass: true, // use .scss files
modules: true, // style.(m|module).css & style.(m|module).scss for module files modules: true, // style.(m|module).css & style.(m|module).scss for module files
sassLoaderOptions: { sassLoaderOptions: {
sassOptions: { sassOptions: {
includePaths: [ includePaths: [
"/styles/sass", "/styles/sass",
"node_modules/govuk-frontend/govuk/all", "node_modules/govuk-frontend/govuk/all",
"/styles/sass/patterns", "/styles/sass/patterns",
"/styles/sass/prevent-training", "/styles/sass/prevent-training",
], // @import 'variables'; # loads (src/styles/varialbes.scss), you got it.. ], // @import 'variables'; # loads (src/styles/varialbes.scss), you got it..
},
}, },
},
}); });
module.exports = { module.exports = {
poweredByHeader: false, generateBuildId: async () => {
env:{ // You can, for example, get the latest git commit hash here
// GRANT_TYPE : 'password', return "pinswg-build-id";
// USERNAME : 'api', },
// API_ROOT : "https://api.dev.prevent.internal.rehab", poweredByHeader: false,
// PASSWORD : 'B69eQwv7rzPBNcA', env: {
// CLIENT_ID : 'fa1f0ef2-f10f-462e-98a5-843359db6066', // GRANT_TYPE : 'password',
// CLIENT_SECRET : 'B69eQwv7rzPBNcA', // USERNAME : 'api',
}, // API_ROOT : "https://api.dev.prevent.internal.rehab",
...nextTranslate(), // PASSWORD : 'B69eQwv7rzPBNcA',
// CLIENT_ID : 'fa1f0ef2-f10f-462e-98a5-843359db6066',
// CLIENT_SECRET : 'B69eQwv7rzPBNcA',
},
...nextTranslate(),
}; };
+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": {