This project is configured for deployment on Netlify.
The project uses Vite for building. The build process:
- Compiles TypeScript (
tsc) - Bundles the application with Vite (
vite build) - Outputs to the
distfolder
- Connect your repository to Netlify
- Build settings (should be auto-detected):
- Build command:
npm run build - Publish directory:
dist
- Build command:
- Environment variables: None required
- WebGPU requires HTTPS: Netlify automatically provides HTTPS, which is required for WebGPU
- Browser compatibility: WebGPU is supported in:
- Chrome 113+
- Edge 113+
- Safari 18+
- The shaders are bundled into the JavaScript, so no separate shader files are needed
If you only see the UI but no rendering:
- Check the browser console for WebGPU errors
- Ensure you're using a supported browser
- Verify the build completed successfully
- Check that HTTPS is enabled (Netlify does this automatically)
To test the production build locally:
npm run build
npm run preview