vue-cli document
https://cli.vuejs.org/guide/mode-and-env.html#modes
โโโโโโ VUE_APP_.. should start in VUE_APP for enviroment variable
โโโโ---
โโโโ- should set repos to public
โโโโ- customize settting for those two file (<>)
โโโโ- delete # use you want in deploy.js
โโโโ---
โโโโ> my-project/vue.config.js
โโโโ
โโโโ module.exports = {
โโโโ publicPath: process.env.NODE_ENV === 'production' ? '/<repo-name>/' : '/',
โโโโ };
โโโโ---
โโโโ> my-project/deploy.s
โโโโ
โโโโ #!/usr/bin/env sh
โโโโ # abort on errors
โโโโ set -e
โโโโ # build
โโโโ npm run build
โโโโ # navigate into the build output directory
โโโโ cd dist
โโโโ # if you are deploying to a custom domain
โโโโ # echo 'www.example.com' > CNAME
โโโโ git init
โโโโ git add -A
โโโโ git commit -m 'deploy'
โโโโ # if you are deploying to https://<USERNAME>.github.io
โโโโ # git push -f git@github.com:<USERNAME>/<USERNAME>.github.io.git master
โโโโ # if you are deploying to https://<USERNAME>.github.io/<REPO>
โโโโ # git push -f git@github.com:<USERNAME>/<REPO>.git master:gh-pages
โโโโ cd -
โโโโ
โโโโ---
โโโโ sh ./deploy.sh //run this in terminal to deploy