config: Use beta deployments
Since our app is deployed under `/beta/insights`, we need to serve the local files under `/beta` as well. This way we can use the production chrome and services config.
This commit is contained in:
parent
2322d134e6
commit
2b4516856f
3 changed files with 5 additions and 3 deletions
|
|
@ -8,7 +8,8 @@ const { config: webpackConfig, plugins } = config({
|
|||
port: 8002,
|
||||
useFileHash: false,
|
||||
modules: [ 'image_builder' ],
|
||||
sassPrefix: '.image-builder, body'
|
||||
sassPrefix: '.image-builder, body',
|
||||
...(process.env.BETA && { deployment: 'beta/apps' }),
|
||||
});
|
||||
|
||||
plugins.push(
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ const { config: webpackConfig, plugins } = config({
|
|||
skipChrome2: false,
|
||||
modules: [ 'image_builder' ],
|
||||
sassPrefix: '.image-builder, body',
|
||||
...(process.env.BETA && { deployment: 'beta/apps' }),
|
||||
});
|
||||
|
||||
plugins.push(
|
||||
|
|
|
|||
|
|
@ -85,9 +85,9 @@
|
|||
"lint:js:fix": "eslint config src --fix",
|
||||
"lint:sass": "stylelint 'src/**/*.scss' --config .stylelintrc.json",
|
||||
"nightly": "npm run travis:verify",
|
||||
"prod": "NODE_ENV=production webpack serve --config config/dev.webpack.config.js",
|
||||
"prod": "NODE_ENV=production BETA=true webpack serve --config config/dev.webpack.config.js",
|
||||
"server:ctr": "node src/server/generateServerKey.js",
|
||||
"start": "NODE_ENV=development webpack serve --host 0.0.0.0 --config config/dev.webpack.config.js",
|
||||
"start": "NODE_ENV=development BETA=true webpack serve --host 0.0.0.0 --config config/dev.webpack.config.js",
|
||||
"test": "jest --verbose",
|
||||
"test:single": "jest --verbose -w 1",
|
||||
"travis:build": "NODE_ENV=production webpack --config config/prod.webpack.config.js",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue