repo_description: Django Rest + Vue JS Template
repo_topics: django django-rest-framework rest-api vue vuecli vuejs whitenoise
code: // 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/',
          }
        }
      }
    }
  