This repository contains a vite based web project generated in Unity (Live Link).
For use Netlify's continuous deployment pipeline the following changes need to be made:
- Make sure gzip is disabled in
vite.config.js.
→ Remove this lineuseGzip(needleConfig) ? viteCompression({ deleteOriginFile: true }) : nullinvite.config.jsin your project
- Create a new project on netlify using a git provider like Github
- Go to "Site settings/Build & deploy" and click on "Continous deployment"
- In "Build Settings" enter:
- Build command:
npm run build:dev - Publish directory:
dist
- Build command:
- Currently with continuous deployment you will not be able to use KTX2 compression using our production build post processing (this is run via
npm run build:production)
- Try deleting your package.lock.json in your project (and optionally add it to your
.gitignorefile)
