files cant't be seen by LLM, but everything else works.
This commit is contained in:
@@ -2,7 +2,7 @@ import { defineConfig } from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import path from 'path'
|
||||
|
||||
export default defineConfig({
|
||||
export default defineConfig(({ mode }) => ({
|
||||
plugins: [react()],
|
||||
resolve: {
|
||||
alias: {
|
||||
@@ -13,9 +13,13 @@ export default defineConfig({
|
||||
port: 3000,
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://localhost:3001',
|
||||
target: mode === 'development' ? 'http://localhost:3002' : 'http://backend:3002',
|
||||
changeOrigin: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
build: {
|
||||
outDir: 'dist',
|
||||
sourcemap: mode === 'development',
|
||||
},
|
||||
}))
|
||||
Reference in New Issue
Block a user