Skip to content

Commit

Permalink
Merge pull request #6 from natanhp/development
Browse files Browse the repository at this point in the history
Add Ready to Deploy Public Path Code
  • Loading branch information
natanhp authored Oct 21, 2021
2 parents 5c32e3b + ce27625 commit ae2e73f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ npm run lint
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).

## Live Demo
[https://natanhp.github.io/Kouvee-Petshop-Frontend/](https://natanhp.github.io/Kouvee-Petshop-Frontend/)

## Contributors
1. [Natan Hari Pamungkas](https://github.com/natanhp)
2. [Yakobus Nobel Judo Prajitno](https://github.com/YakobusNobels)
Expand Down
5 changes: 4 additions & 1 deletion src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,10 @@ const routes = [

Vue.use(Router)

const router = new Router({mode: 'history', routes: routes})
const router = new Router({mode: 'history',
// If we want to deploy to non root path
// base: '/Kouvee-Petshop-Frontend/',
routes: routes})

router.beforeEach((to, from, next) => {
if(to.matched.some(record => record.meta.requiresAuth)) {
Expand Down
3 changes: 3 additions & 0 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ module.exports = {
"transpileDependencies": [
"vuetify"
],

// If we want to deploy to non root path
// publicPath: '/Kouvee-Petshop-Frontend/'
}

0 comments on commit ae2e73f

Please sign in to comment.