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