Skip to content

Commit

Permalink
feat(gtm): add configurable via process.env router history mode
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderrudnik committed Aug 6, 2019
1 parent 1dc6f44 commit 9fe7d51
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 17 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ VUE_APP_DRIFT_KEY=
VUE_APP_GOOGLE_MAPS_API_KEY=

VUE_APP_INCLUDE_DEMOS=

VUE_APP_ROUTER_MODE_HISTORY=
29 changes: 12 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ if (process.env.NODE_ENV === 'development' || process.env.VUE_APP_INCLUDE_DEMOS)
}

export default new Router({
mode: process.env.VUE_APP_ROUTER_MODE_HISTORY === 'true' ? 'history' : 'hash',
routes: [
...demoRoutes,
{
Expand Down

0 comments on commit 9fe7d51

Please sign in to comment.