file uploaded path correction

This commit is contained in:
sandhiya-hepl
2026-07-23 12:32:42 +05:30
parent b5f7a38c2a
commit 1b40a451b1
10 changed files with 247 additions and 75 deletions
+10 -2
View File
@@ -12,8 +12,16 @@ export default defineConfig((configEnv) => {
plugins: [react()],
server: {
proxy: {
'/api': 'http://localhost:3001',
'/uploads': 'http://localhost:3001',
'/api': {
target: 'http://localhost:3001',
changeOrigin: true,
proxyTimeout: 120000,
timeout: 120000,
},
'/uploads': {
target: 'http://localhost:3001',
changeOrigin: true,
},
},
},
build: {