vue.config.js 465 B

1234567891011121314151617181920212223
  1. const proxy = process.env.VUE_APP_API_URL_PREFIX
  2. ? {
  3. "/ingest": {
  4. target: process.env.VUE_APP_API_URL_PREFIX,
  5. changeOrigin: true,
  6. },
  7. "/location": {
  8. target: process.env.VUE_APP_API_URL_PREFIX,
  9. changeOrigin: true,
  10. },
  11. }
  12. : undefined;
  13. module.exports = {
  14. publicPath: "./",
  15. devServer: {
  16. headers: {
  17. "Cache-Control": "no-store",
  18. },
  19. https: false,
  20. ...(proxy ? { proxy } : {}),
  21. },
  22. };