Files
yhy-mager/frontend/vite.config.ts
xiewenjun 54c318c615
Some checks failed
Check / delivery-static (push) Has been cancelled
Check / api (push) Has been cancelled
Check / web (push) Has been cancelled
feat: implement license platform business flows and delivery tooling
Add admin and customer interfaces, orders, signed activation and leases, protected package delivery, keyring verification, migrations, security controls, tests and deployment documentation.

Co-Authored-By: Craft Agent <agents-noreply@craft.do>
2026-10-09 15:33:22 +08:00

22 lines
487 B
TypeScript

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
export default defineConfig({
plugins: [vue()],
server: {
port: 5173,
// Preserve the browser-facing Host so the API's same-origin guard can
// compare it with Origin. Vite's string shorthand enables changeOrigin.
proxy: {
'/api': {
target: 'http://127.0.0.1:18081',
changeOrigin: false,
},
}
},
test: {
environment: 'jsdom',
globals: true,
},
})