Skip to content

Commit

Permalink
feat: add env variables to frontend app
Browse files Browse the repository at this point in the history
  • Loading branch information
jkklapp committed May 25, 2022
1 parent d675530 commit f264e29
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions frontend/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VUE_APP_NAME=WSNE
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"serve": "PORT=8888 vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint",
"test": "jest"
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/components/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
to="/"
class="navbar-brand"
>
Vue Firebase Auth
{{ appName }}
</router-link>
<button
class="navbar-toggler"
Expand Down Expand Up @@ -63,6 +63,7 @@ import { mapGetters } from 'vuex';
import firebase from 'firebase/compat/app';
export default {
computed: {
appName: () => process.env.VUE_APP_NAME,
...mapGetters({
// map `this.user` to `this.$store.getters.user`
user: 'user',
Expand Down

0 comments on commit f264e29

Please sign in to comment.