import { defineConfig, searchForWorkspaceRoot } from 'vite';
import react from '@vitejs/plugin-react';

// https://vitejs.dev/config/
export default defineConfig({
	plugins: [react()],
	build: {
		minify: false,
	},
	server: {
		port: 3000,
		fs: {
			allow: [
				searchForWorkspaceRoot(process.cwd()),
				searchForWorkspaceRoot('../'),
			],
		},
	},
});
