Skip to content

Commit

Permalink
Added small hook to stop the prepare step of nuxt due to hanging issue:
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofVDB1 committed Nov 28, 2023
1 parent 306f5ef commit 7f37a5f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ export default defineNuxtConfig({
// https://nuxt.com/docs/getting-started/deployment#static-hosting
ssr: true,
debug: false,
hooks: {
// https://github.com/davestewart/nuxt-content-assets/issues/49
// Needed to prevent generate step from hanging. NUXT ^3.7 and above issue
close: (nuxt) => {
if (!nuxt.options._prepare)
process.exit()
}
},
app: {
head: {
title: 'OSLO-standaardenregister',
Expand Down

0 comments on commit 7f37a5f

Please sign in to comment.