mirror of
https://github.com/SirBlobby/Hoya26.git
synced 2026-02-04 03:34:34 -05:00
Docker Update and Fixes
This commit is contained in:
@@ -5,6 +5,9 @@ import tailwindcss from '@tailwindcss/vite'
|
||||
|
||||
const host = process.env.TAURI_DEV_HOST;
|
||||
|
||||
// Backend API URL for development proxy
|
||||
const API_TARGET = process.env.API_URL || 'http://localhost:5000';
|
||||
|
||||
export default defineConfig(async () => ({
|
||||
plugins: [sveltekit(), tailwindcss()],
|
||||
clearScreen: false,
|
||||
@@ -22,5 +25,13 @@ export default defineConfig(async () => ({
|
||||
watch: {
|
||||
ignored: ["**/src-tauri/**"],
|
||||
},
|
||||
// Proxy API requests to backend during development
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: API_TARGET,
|
||||
changeOrigin: true,
|
||||
secure: false,
|
||||
}
|
||||
}
|
||||
},
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user