Files

17 lines
417 B
TypeScript

import { fileURLToPath, URL } from 'node:url';
import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';
const rootDir = fileURLToPath(new URL('.', import.meta.url));
const workspaceDir = fileURLToPath(new URL('..', import.meta.url));
export default defineConfig({
plugins: [react()],
assetsInclude: ['**/*.glb'],
server: {
fs: {
allow: [rootDir, workspaceDir],
},
},
});