quickbuild
Version:
A mature, feature-complete application generator with an emphasis on speed
22 lines (20 loc) • 598 B
JavaScript
// const IS_PRODUCTION = process.env.NODE_ENV === 'production'
module.exports = {
outputDir: 'dist',
assetsDir: 'static',
// baseUrl: IS_PRODUCTION
// ? 'http://cdn123.com'
// : '/',
// For Production, replace set baseUrl to CDN
// And set the CDN origin to `yourdomain.com/static`
// Whitenoise will serve once to CDN which will then cache
// and distribute
devServer: {
proxy: {
'/api*': {
// Forward frontend dev server request for /api to django dev server
target: 'http://localhost:8000/',
}
}
}
}