init commit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import { defineConfig } from 'vitest/config'
|
||||
|
||||
// В dev /api проксируется на бэкенд (Basic-auth браузер спросит сам).
|
||||
const target = process.env.VITE_API_TARGET ?? 'http://127.0.0.1:8080'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
server: { port: 5173, proxy: { '/api': { target, changeOrigin: false } } },
|
||||
test: { environment: 'node' },
|
||||
})
|
||||
Reference in New Issue
Block a user