Note: Pushes to the master branch will automatically be deployed on the Netlify, so it might be best to use a test branch before pushing to master.
- Ensure node is installed. Offcial installion guide
- From the root of the repo, run
npm install
to install the project's depencencies. - Run
npm run build
to build the project. This results in new folder nameddist
in the root directory from which you can deploy. - Upload the files in
dist
to your hosting web server. - In Sanity.io, navigate to the Manage Project page for Wohohiame. Under the API tab, there is a CORS orgins section to which you must add your hosting url so that the client can fetch resources from the database.