Skip to content

Commit

Permalink
Add BASE_URL to env for deployment
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Andrew Hinchey <chinchey@mitre.org>
  • Loading branch information
ChrisHinchey committed Dec 6, 2023
1 parent bf08688 commit d14f4b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
env:
STRAPI_URL: https://saf-site-backend.herokuapp.com
GQL_HOST: https://saf-site-backend.herokuapp.com/graphql
BASE_URL: saf-site-frontend
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ export default defineNuxtConfig({
],
link: [{rel: 'icon', type: 'image/svg', href: '/safLogoFavicon.svg'}]
},
baseURL: '/' // baseURL: '/<repository>/'
baseURL: process.env.BASE_URL // baseURL: '/<repository>/' for github or '/' for local
}
});

0 comments on commit d14f4b8

Please sign in to comment.