Files
rw-visualizer/frontend/vite.config.ts
T
2026-12-02 13:12:37 +05:00

21 lines
479 B
TypeScript

import vue from '@vitejs/plugin-vue'
import { defineConfig } from 'vitest/config'
const target = process.env.VITE_API_TARGET ?? 'http://127.0.0.1:8080'
export default defineConfig({
base: '/xray-checker/routing/',
plugins: [vue()],
server: {
port: 5173,
proxy: {
'/xray-checker/routing/api': {
target,
changeOrigin: false,
rewrite: path =>
path.replace(/^\/xray-checker\/routing/, ''),
},
},
},,
test: { environment: 'node' },
})