diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..f7f25c9 --- /dev/null +++ b/.env.development @@ -0,0 +1,2 @@ +eveal-api-url=/api/ +evepraisal-api-url=/appraisal/ \ No newline at end of file diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..af9eb66 --- /dev/null +++ b/.env.production @@ -0,0 +1,2 @@ +eveal-api-url=https://api.eveal.shendai.rip/ +evepraisal-api-url=https://evepraisal.shendai.rip/ \ No newline at end of file diff --git a/vite.config.ts b/vite.config.ts index faac166..8e5f2bb 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -16,7 +16,7 @@ export default defineConfig({ strictPort: true, proxy: { '/api': { - target: 'https://eveal.shendai.rip/', + target: 'https://api.eveal.shendai.rip/', changeOrigin: true, followRedirects: true, rewrite: (path) => path.replace(/^\/api/, ''),