Skip to content

Example project for using Netlify's continuous deployment with a Needle Engine web project

Notifications You must be signed in to change notification settings

needle-engine/deploy-to-netlify

Repository files navigation

Needle Engine on Netlify

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 line useGzip(needleConfig) ? viteCompression({ deleteOriginFile: true }) : null in vite.config.js in your project

Setup on Netlify

  1. Create a new project on netlify using a git provider like Github
  2. Go to "Site settings/Build & deploy" and click on "Continous deployment"
  3. In "Build Settings" enter:
    • Build command: npm run build:dev
    • Publish directory: dist

"netlify settings screenshot"

Gotchas

  • 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)

Troubleshooting

Deployment fails

  • Try deleting your package.lock.json in your project (and optionally add it to your .gitignore file)

Internal

About

Example project for using Netlify's continuous deployment with a Needle Engine web project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published