Skip to content

Commit abb5d91

Browse files
committed
another fix
1 parent c420dd9 commit abb5d91

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
- name: Generate static site
2626
env:
27-
BASE_URL: /comforterpdocsnuxt/
27+
NUXT_APP_BASE_URL: /comforterpdocsnuxt/
2828
run: |
2929
npm run generate
3030

nuxt.config.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ const currentDir = dirname(fileURLToPath(import.meta.url));
66

77
//const base = process.env.NUXT_APP_BASE_URL || '/comforterpdocsnuxt/';
88

9-
console.log('>>> BASE_URL at build time:', process.env.BASE_URL)
9+
console.log('>>> BASE_URL at build time:', process.env.BASE_URL);
10+
console.log('>>> BASE_URL at build time:', process.env.NUXT_APP_BASE_URL);
1011

1112

1213
export default defineNuxtConfig({
@@ -19,7 +20,7 @@ export default defineNuxtConfig({
1920
},
2021
app: {
2122
//baseURL: process.env.BASE_URL || '/comforterpdocsnuxt/',
22-
baseURL: process.env.BASE_URL ?? '/',
23+
baseURL: process.env.NUXT_APP_BASE_URL ?? '/',
2324
head: {
2425
link: [
2526
{ rel: 'icon', type: 'image/svg', href: '/logo_icon_brand_512.png' },

0 commit comments

Comments
 (0)