Closed hiro-lapis closed 6 months ago
デプロイの際にprerenderエラーでビルド失敗する https://github.com/hiro-lapis/hiro-lapis.github.io/actions/runs/8593299945/job/23544638543
ググって試したnuxt.config.tsの設定も効かない。
https://github.com/hiro-lapis/hiro-lapis.github.io/actions/runs/8601445601/job/23568732026 ↑最近追加したwriting ページのstoreを使う処理をコメントアウトしたらエラーなくビルドできた。
prerenderは事前ビルドを行う機能。クライアントサイドのストレージを用いるstoreの機能を使っているページではできないのかも。 nitroの設定を見た感じ、そもそもprerender失敗時にfail on error:falseになっているのだが落ちるのはなぜなのか。。。 ともあれ、解消する方法を試す
https://github.com/hiro-lapis/hiro-lapis.github.io/commit/5220f5181916c522c164f219f3912be976dbe98b こちらで解消。 storeを使っているページをssr: true 状態でprerenderするとエラーになるみたい。 ssr設定をOFFにした解消した
デプロイの際にprerenderエラーでビルド失敗する https://github.com/hiro-lapis/hiro-lapis.github.io/actions/runs/8593299945/job/23544638543
ググって試したnuxt.config.tsの設定も効かない。
https://github.com/hiro-lapis/hiro-lapis.github.io/actions/runs/8601445601/job/23568732026 ↑最近追加したwriting ページのstoreを使う処理をコメントアウトしたらエラーなくビルドできた。
prerenderは事前ビルドを行う機能。クライアントサイドのストレージを用いるstoreの機能を使っているページではできないのかも。 nitroの設定を見た感じ、そもそもprerender失敗時にfail on error:falseになっているのだが落ちるのはなぜなのか。。。 ともあれ、解消する方法を試す