21 lines
479 B
TypeScript
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' },
|
|
}) |