diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index abe987eb..c4ae33a8 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 diff --git a/nuxt.config.ts b/nuxt.config.ts index 5d1c7f6b..97e1cbb4 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -44,6 +44,6 @@ export default defineNuxtConfig({ ], link: [{rel: 'icon', type: 'image/svg', href: '/safLogoFavicon.svg'}] }, - baseURL: '/' // baseURL: '//' + baseURL: process.env.BASE_URL // baseURL: '//' for github or '/' for local } });