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>
22 lines
487 B
TypeScript
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,
|
|
},
|
|
})
|