This document covers how to deploy Brewventy to various platforms.
- Create a new site in Netlify dashboard.
- Connect your GitHub repository.
- Set build command:
npm run buildand publish directory:_site. - Add environment variables if needed.
- Deploy!
- Install Vercel CLI:
npm install -g vercel. - Run
vercelin project root and follow prompts. - Set framework to ‘Other’ and build command
npm run build, output directory_site. - Deploy with
vercel --prod.
- Add
gh-pagespackage:npm install gh-pages --save-dev. - Add scripts to
package.json:"scripts": { "predeploy": "npm run build", "deploy": "gh-pages -d _site" }
- Run
npm run deploy. - In GitHub settings, enable GitHub Pages from
gh-pagesbranch. - Deploy using Github Workflows (see example
[github_workflow_gh-pages.yml](github_workflow_gh-pages.yml)).
- Simply run
npm run buildand serve_sitedirectory with any static server.