feat: Add CDN support (#1817)
* chore: CSP * chore: Optionally use CDN for serving images
This commit is contained in:
@@ -10,7 +10,7 @@ productionWebpackConfig = Object.assign(commonWebpackConfig, {
|
||||
output: {
|
||||
path: path.join(__dirname, 'build/app'),
|
||||
filename: '[name].[contenthash].js',
|
||||
publicPath: '/static/',
|
||||
publicPath: `${process.env.CDN_URL || ""}/static/`,
|
||||
},
|
||||
cache: true,
|
||||
mode: "production",
|
||||
|
||||
Reference in New Issue
Block a user