Skip to content

Commit

Permalink
🏗️ Set baseURL based on env var
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbertrand committed Oct 9, 2024
1 parent 9460b2c commit f550976
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build-and-deploy-pr-previews.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
- name: Build
run: npm run build
env:
NUXT_APP_BASE_URL: '/telehoraire-website/pr-preview/pr-${{ github.event.number }}'
SOURCE_API_URL: ${{ vars.SOURCE_API_URL }}
TZ: ${{ vars.TZ }}
- name: Deploy PR preview
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
- name: Build
run: npm run build
env:
NUXT_APP_BASE_URL: '/telehoraire-website'
SOURCE_API_URL: ${{ vars.SOURCE_API_URL }}
TZ: ${{ vars.TZ }}
- name: Setup Pages
Expand Down
1 change: 0 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
app: {
baseURL: "/telehoraire-website/",
head: {
title: "Téléhoraire",
},
Expand Down

0 comments on commit f550976

Please sign in to comment.