Files
n8n_Demo/web_frontend/exhibition-demo/vite.config.ts

28 lines
492 B
TypeScript
Raw Normal View History

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
'@': '/src',
},
},
server: {
port: 4173,
host: true,
fs: {
// 允许访问符号链接指向的文件
allow: ['..'],
},
},
preview: {
port: 4173,
host: true,
fs: {
// 允许访问符号链接指向的文件
allow: ['..'],
},
},
})