We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0f450f commit 55355d6Copy full SHA for 55355d6
1 file changed
frontend/vite.config.ts
@@ -1,15 +1,14 @@
1
-import { defineConfig, loadEnv } from 'vite';
+import { defineConfig } from 'vite';
2
import react from '@vitejs/plugin-react';
3
4
-export default defineConfig(({ mode }) => {
5
- const env = loadEnv(mode, process.cwd(), '');
+export default defineConfig(() => {
6
7
return {
8
plugins: [react()],
9
server: {
10
proxy: {
11
'/api': {
12
- target: "https://blog-platform-api.azurewebsites.net/", //env.VITE_API_BASE_URL,
+ target: "https://blog-platform-api.azurewebsites.net/",
13
changeOrigin: true,
14
secure: false,
15
},
0 commit comments