19 lines
488 B
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import path from 'path'
const reactPlugin: any = react()
export default defineConfig({
plugins: [reactPlugin],
server: {
// Use a fixed port that is available in the current environment
port: 5174,
// Allow Vite to access shared folder during development (monorepo)
fs: {
allow: [path.resolve(__dirname), path.resolve(__dirname, '../../shared')],
strict: false,
},
},
})