fix: resolve frontend TypeScript sources first (AEG-X-002)
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
import { fileURLToPath, URL } from 'node:url';
|
||||
import { defineConfig } from 'vite';
|
||||
import vue from '@vitejs/plugin-vue';
|
||||
const apiTarget = process.env.VITE_API_TARGET || 'http://localhost:5000';
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) } },
|
||||
server: { proxy: { '/api': 'http://localhost:5000' } }
|
||||
resolve: {
|
||||
alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) },
|
||||
extensions: ['.ts', '.tsx', '.vue', '.js', '.jsx', '.json']
|
||||
},
|
||||
server: { proxy: { '/api': apiTarget } },
|
||||
preview: { proxy: { '/api': apiTarget } }
|
||||
});
|
||||
|
||||
@@ -6,7 +6,10 @@ const apiTarget = process.env.VITE_API_TARGET || 'http://localhost:5000'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) } },
|
||||
resolve: {
|
||||
alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) },
|
||||
extensions: ['.ts', '.tsx', '.vue', '.js', '.jsx', '.json']
|
||||
},
|
||||
server: { proxy: { '/api': apiTarget } },
|
||||
preview: { proxy: { '/api': apiTarget } }
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user