udpdated build config
This commit is contained in:
+25
-21
@@ -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(),
|
||||
};
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"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"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
Reference in New Issue
Block a user