Skip to content

Commit 3fc4f3c

Browse files
yamanokuclaude
andcommitted
fix: Netlify環境でNitroプリセットを明示的にserverに固定
Netlify環境ではNITRO環境変数により自動的にnetlifyプリセットが検知・使用され、 ビルド出力先が .output/public/ から .netlify/functions-internal/ に変わってしまう。 NITRO_PRESET=server を明示することでローカルと同じ挙動にし、 renameDir.js が参照する .output/public/ が正しく生成されるようにする。 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 1e42648 commit 3fc4f3c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

netlify.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
command = "npm run generate"
33
publish = "dist"
44

5+
[build.environment]
6+
NITRO_PRESET = "server"
7+
58
[[redirects]]
69
from = "/2022/*"
710
to = "/2022/index.html"

0 commit comments

Comments
 (0)