Skip to content

Commit 45c483e

Browse files
committed
nuxt config trying for github
1 parent abb5d91 commit 45c483e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

example.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
NUXT_APP_BASE_URL=/
2+
PRESET='static' #'github-pages'

nuxt.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ const currentDir = dirname(fileURLToPath(import.meta.url));
77
//const base = process.env.NUXT_APP_BASE_URL || '/comforterpdocsnuxt/';
88

99
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);
10+
console.log('>>> NUXT_APP_BASE_URL at build time:', process.env.NUXT_APP_BASE_URL);
1111

1212

1313
export default defineNuxtConfig({
1414
nitro: {
1515
//preset: 'github-pages',
1616
preset: process.env.PRESET,
1717
prerender: {
18-
failOnError: false, // Don’t exit build on missing docs/images
18+
failOnError: true, // Don’t exit build on missing docs/images
1919
},
2020
},
2121
app: {

0 commit comments

Comments
 (0)