17 lines
480 B
TypeScript
17 lines
480 B
TypeScript
import { fileURLToPath, URL } from 'node:url'
|
|
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) } },
|
|
server: {
|
|
host: '127.0.0.1',
|
|
port: 39158,
|
|
strictPort: true,
|
|
proxy: { '/api': { target: 'http://127.0.0.1:18474', changeOrigin: true } },
|
|
},
|
|
preview: { host: '127.0.0.1', port: 39158, strictPort: true },
|
|
})
|
|
|