findtheti.me/frontend/vite.config.ts

24 lines
483 B
TypeScript
Raw Normal View History

2024-01-08 20:09:26 +02:00
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { fileURLToPath, URL } from 'node:url'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
2024-01-09 17:23:40 +02:00
server: {
proxy: {
"/api": {
2024-01-13 13:18:12 +02:00
target: "https://localhost:8443",
2024-01-09 17:23:40 +02:00
changeOrigin: true,
secure: false,
},
}
},
2024-01-08 20:09:26 +02:00
resolve: {
alias: [
{ find: '@', replacement: fileURLToPath(new URL('./src', import.meta.url)) }
]
}
})