Entry for GS1 Trace & Trust in CBD Hackathon https://gs1us-hemphack.bemyapp.com/
npm run deploy
does:
- npm run build
- git add dist -f
- git commit -m "Update build"
- git subtree push --prefix dist origin gh-pages
Might need to do this
https://gist.github.com/tduarte/eac064b4778711b116bb827f8c9bef7b
git checkout master # you can avoid this line if you are in master...
git subtree split --prefix dist -b gh-pages # create a local gh-pages branch containing the splitted output folder
git push -f origin gh-pages:gh-pages # force the push of the gh-pages branch to the remote gh-pages branch at origin
git branch -D gh-pages # delete the local gh-pages because you will need it: ref
Also, added base: "/gs1/" to vite.config.js
- rename
.env_SAMPLE
to.env
and insert firebase config vars - npm i
- npm run dev
- open http://localhost:8000