config: add appUrl for /preview

The appUrl webpack param can accept an array. This array includes urls for
prod, beta, and preview.
This commit is contained in:
jkozol 2023-04-25 19:51:04 +02:00 committed by Sanne Raymaekers
parent 79fe46474a
commit 113759aa77

View file

@ -8,9 +8,11 @@ const webpackProxy = {
env: `${process.env.STAGE ? 'stage' : 'prod'}-${
process.env.BETA ? 'beta' : 'stable'
}`,
appUrl: process.env.BETA
? '/beta/insights/image-builder'
: '/insights/image-builder',
appUrl: [
'/insights/image-builder',
'/beta/insights/image-builder',
'/preview/insights/image-builder',
],
};
const { config: webpackConfig, plugins } = config({