@sifxprime/krouter 0.5.166 → 0.5.167
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/.next-cli-build/BUILD_ID +1 -1
- package/app/.next-cli-build/app-path-routes-manifest.json +14 -14
- package/app/.next-cli-build/build-manifest.json +5 -5
- package/app/.next-cli-build/prerender-manifest.json +29 -29
- package/app/.next-cli-build/react-loadable-manifest.json +2 -2
- package/app/.next-cli-build/required-server-files.json +16 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/environment/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/environment/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/presidio/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/presidio/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error/page.js +1 -1
- package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error.html +1 -1
- package/app/.next-cli-build/server/app/_global-error.rsc +15 -11
- package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +15 -11
- package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +20 -16
- package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +3 -1
- package/app/.next-cli-build/server/app/_not-found/page.js +1 -1
- package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_not-found.html +1 -1
- package/app/.next-cli-build/server/app/_not-found.rsc +26 -16
- package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +26 -16
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +32 -22
- package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +3 -1
- package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cache/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +6 -6
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +3 -3
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +3 -3
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +4 -4
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +3 -3
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
- package/app/.next-cli-build/server/app/api/health/route.js +1 -1
- package/app/.next-cli-build/server/app/api/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/init/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
- package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mitm/cert/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/live/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/live-by-connection/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/preview/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +2 -2
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/health/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/zenith/log/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/zenith/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
- package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/environment/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/presidio/route.js +3 -3
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
- package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/stream/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +2 -2
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js +2 -2
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
- package/app/.next-cli-build/server/app/callback/page.js +1 -1
- package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/callback.html +1 -1
- package/app/.next-cli-build/server/app/callback.rsc +29 -18
- package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +29 -18
- package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +3 -1
- package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +37 -26
- package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +31 -18
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +38 -26
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +31 -18
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +5 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +34 -19
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +40 -27
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +34 -19
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +5 -1
- package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.rsc +35 -21
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +42 -30
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +35 -21
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +5 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +33 -19
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +39 -27
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +33 -19
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +5 -1
- package/app/.next-cli-build/server/app/dashboard/environment.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/environment.rsc +34 -21
- package/app/.next-cli-build/server/app/dashboard/environment.segments/!KGRhc2hib2FyZCk/dashboard/environment/__PAGE__.segment.rsc +41 -30
- package/app/.next-cli-build/server/app/dashboard/environment.segments/_full.segment.rsc +34 -21
- package/app/.next-cli-build/server/app/dashboard/environment.segments/_tree.segment.rsc +5 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +36 -23
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +44 -32
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +36 -23
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +6 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.rsc +33 -18
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +40 -26
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +33 -18
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +5 -1
- package/app/.next-cli-build/server/app/dashboard/presidio.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/presidio.rsc +34 -21
- package/app/.next-cli-build/server/app/dashboard/presidio.segments/!KGRhc2hib2FyZCk/dashboard/presidio/__PAGE__.segment.rsc +41 -30
- package/app/.next-cli-build/server/app/dashboard/presidio.segments/_full.segment.rsc +34 -21
- package/app/.next-cli-build/server/app/dashboard/presidio.segments/_tree.segment.rsc +5 -1
- package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.rsc +34 -21
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +41 -30
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +34 -21
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +5 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +35 -23
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +44 -32
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +35 -23
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +6 -1
- package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.rsc +34 -21
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +41 -30
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +34 -21
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +5 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +34 -21
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +41 -30
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +34 -21
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +5 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +31 -18
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +38 -26
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +31 -18
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +5 -1
- package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.rsc +32 -19
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +39 -28
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +32 -19
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +5 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +31 -18
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +31 -18
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +5 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +40 -27
- package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.rsc +34 -21
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +41 -30
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +34 -21
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +5 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +31 -18
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +38 -26
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +31 -18
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +5 -1
- package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.rsc +34 -21
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +41 -30
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +34 -21
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +5 -1
- package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.rsc +34 -21
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +41 -30
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +34 -21
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +5 -1
- package/app/.next-cli-build/server/app/dashboard.html +1 -1
- package/app/.next-cli-build/server/app/dashboard.rsc +32 -19
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +38 -25
- package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +32 -19
- package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +4 -1
- package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
- package/app/.next-cli-build/server/app/index.html +1 -1
- package/app/.next-cli-build/server/app/index.rsc +24 -15
- package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +29 -20
- package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +24 -15
- package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -1
- package/app/.next-cli-build/server/app/landing/page.js +1 -1
- package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/landing.html +1 -1
- package/app/.next-cli-build/server/app/landing.rsc +30 -18
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +30 -18
- package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +3 -1
- package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +38 -26
- package/app/.next-cli-build/server/app/login/page.js +1 -1
- package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/login.html +1 -1
- package/app/.next-cli-build/server/app/login.rsc +29 -18
- package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +29 -18
- package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +3 -1
- package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +37 -26
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
- package/app/.next-cli-build/server/app/page.js +1 -1
- package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app-paths-manifest.json +14 -14
- package/app/.next-cli-build/server/chunks/1220.js +3 -3
- package/app/.next-cli-build/server/chunks/1344.js +2 -2
- package/app/.next-cli-build/server/chunks/1350.js +1 -1
- package/app/.next-cli-build/server/chunks/1450.js +1 -1
- package/app/.next-cli-build/server/chunks/1738.js +1 -1
- package/app/.next-cli-build/server/chunks/1813.js +23 -1
- package/app/.next-cli-build/server/chunks/2430.js +215 -31
- package/app/.next-cli-build/server/chunks/2722.js +6 -6
- package/app/.next-cli-build/server/chunks/2750.js +1 -1
- package/app/.next-cli-build/server/chunks/2970.js +163 -23
- package/app/.next-cli-build/server/chunks/3120.js +1 -1
- package/app/.next-cli-build/server/chunks/369.js +5 -5
- package/app/.next-cli-build/server/chunks/4161.js +1 -1
- package/app/.next-cli-build/server/chunks/4177.js +1 -1
- package/app/.next-cli-build/server/chunks/4306.js +1 -1
- package/app/.next-cli-build/server/chunks/4380.js +1 -1
- package/app/.next-cli-build/server/chunks/4730.js +2 -2
- package/app/.next-cli-build/server/chunks/4884.js +1 -1
- package/app/.next-cli-build/server/chunks/523.js +1 -1
- package/app/.next-cli-build/server/chunks/5330.js +2 -2
- package/app/.next-cli-build/server/chunks/5433.js +1 -1
- package/app/.next-cli-build/server/chunks/5470.js +3 -3
- package/app/.next-cli-build/server/chunks/5573.js +1 -1
- package/app/.next-cli-build/server/chunks/5718.js +1 -1
- package/app/.next-cli-build/server/chunks/595.js +1 -1
- package/app/.next-cli-build/server/chunks/6182.js +2 -2
- package/app/.next-cli-build/server/chunks/7153.js +1 -1
- package/app/.next-cli-build/server/chunks/7774.js +13 -13
- package/app/.next-cli-build/server/chunks/7833.js +1 -1
- package/app/.next-cli-build/server/chunks/8238.js +1 -1
- package/app/.next-cli-build/server/chunks/8895.js +1 -1
- package/app/.next-cli-build/server/chunks/8962.js +1 -1
- package/app/.next-cli-build/server/chunks/9055.js +2 -2
- package/app/.next-cli-build/server/chunks/9958.js +1 -1
- package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
- package/app/.next-cli-build/server/middleware-react-loadable-manifest.js +1 -1
- package/app/.next-cli-build/server/middleware.js +186 -24
- package/app/.next-cli-build/server/pages/404.html +1 -1
- package/app/.next-cli-build/server/pages/500.html +1 -1
- package/app/.next-cli-build/server/preview-props.json +5 -0
- package/app/.next-cli-build/server/server-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/server-reference-manifest.json +1 -1
- package/app/.next-cli-build/static/chunks/1321-3997ec181addbfaa.js +1 -0
- package/app/.next-cli-build/static/chunks/3794-39f2d5bb0d40336b.js +52 -0
- package/app/.next-cli-build/static/chunks/4bd1b696-8cd12253b448cc13.js +1 -0
- package/app/.next-cli-build/static/chunks/5353-0085e26d68aca1f0.js +1 -0
- package/app/.next-cli-build/static/chunks/5772-9e7c7f235304c527.js +3 -0
- package/app/.next-cli-build/static/chunks/6069-31c2febe26d36d92.js +73 -0
- package/app/.next-cli-build/static/chunks/{6357.aa5754cdb37976a7.js → 6357.5f2532e76bf2cc51.js} +1 -1
- package/app/.next-cli-build/static/chunks/7504-5249aa88b6205df1.js +64 -0
- package/app/.next-cli-build/static/chunks/8202.69dace5daa86686d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/page-8a99890727166f8a.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/page-ce0c6b650a822e25.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-589743e8ea1d9673.js +11 -0
- package/app/.next-cli-build/static/chunks/main-00cd8c01f6f6e461.js +5 -0
- package/app/.next-cli-build/static/chunks/{webpack-53609978799ebbca.js → webpack-cc312041cf710f25.js} +1 -1
- package/app/cli/package.json +1 -1
- package/app/node_modules/@next/env/package.json +1 -1
- package/app/node_modules/nanoid/package.json +3 -3
- package/app/node_modules/next/dist/build/analysis/get-page-static-info.js +58 -76
- package/app/node_modules/next/dist/build/babel/loader/get-config.js +7 -16
- package/app/node_modules/next/dist/build/babel/plugins/next-font-unsupported.js +1 -5
- package/app/node_modules/next/dist/build/babel/plugins/next-page-config.js +5 -25
- package/app/node_modules/next/dist/build/babel/plugins/next-page-disallow-re-export-all-exports.js +1 -5
- package/app/node_modules/next/dist/build/babel/plugins/next-ssg-transform.js +4 -20
- package/app/node_modules/next/dist/build/browser-variant-modules.js +1 -0
- package/app/node_modules/next/dist/build/create-compiler-aliases.js +19 -11
- package/app/node_modules/next/dist/build/define-env.js +12 -18
- package/app/node_modules/next/dist/build/entries.js +132 -8
- package/app/node_modules/next/dist/build/get-babel-loader-config.js +10 -10
- package/app/node_modules/next/dist/build/get-convention-file-base-name.js +29 -0
- package/app/node_modules/next/dist/build/get-static-info-including-layouts.js +0 -1
- package/app/node_modules/next/dist/build/handle-externals.js +1 -5
- package/app/node_modules/next/dist/build/load-jsconfig.js +1 -5
- package/app/node_modules/next/dist/build/lockfile.js +1 -5
- package/app/node_modules/next/dist/build/next-config-ts/transpile-config.js +1 -5
- package/app/node_modules/next/dist/build/nft.js +119 -0
- package/app/node_modules/next/dist/build/normalize-catchall-routes.js +18 -66
- package/app/node_modules/next/dist/build/print-build-errors.js +57 -7
- package/app/node_modules/next/dist/build/route-discovery.js +32 -4
- package/app/node_modules/next/dist/build/segment-config/app/app-segment-config.js +19 -5
- package/app/node_modules/next/dist/build/segment-config/app/app-segments.js +120 -29
- package/app/node_modules/next/dist/build/segment-config/app/collect-root-param-keys.js +1 -5
- package/app/node_modules/next/dist/build/static-paths/app/extract-pathname-route-param-segments-from-loader-tree.js +8 -2
- package/app/node_modules/next/dist/build/static-paths/app.js +230 -133
- package/app/node_modules/next/dist/build/static-paths/pages.js +8 -40
- package/app/node_modules/next/dist/build/static-paths/param-matching.js +200 -0
- package/app/node_modules/next/dist/build/swc/index.js +92 -162
- package/app/node_modules/next/dist/build/utils.js +180 -90
- package/app/node_modules/next/dist/build/webpack/cache-invalidation.js +1 -5
- package/app/node_modules/next/dist/build/webpack/config/blocks/css/plugins.js +7 -35
- package/app/node_modules/next/dist/build/webpack/loaders/css-loader/src/CssSyntaxError.js +0 -5
- package/app/node_modules/next/dist/build/webpack/loaders/css-loader/src/camelcase.js +1 -5
- package/app/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js +5 -25
- package/app/node_modules/next/dist/build/webpack/loaders/css-loader/src/plugins/postcss-import-parser.js +4 -20
- package/app/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/index.js +3 -16
- package/app/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/interface.js +0 -1
- package/app/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/loader.js +2 -10
- package/app/node_modules/next/dist/build/webpack/loaders/next-flight-css-loader.js +1 -5
- package/app/node_modules/next/dist/build/webpack/loaders/next-flight-loader/index.js +3 -15
- package/app/node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js +3 -15
- package/app/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/Error.js +0 -5
- package/app/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/Warning.js +0 -5
- package/app/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js +2 -10
- package/app/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/index.js +2 -6
- package/app/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/lib/file-protocol.js +2 -10
- package/app/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/lib/join-function.js +1 -5
- package/app/node_modules/next/dist/build/webpack/loaders/resolve-url-loader/lib/postcss.js +1 -5
- package/app/node_modules/next/dist/build/webpack/plugins/build-manifest-plugin.js +1 -5
- package/app/node_modules/next/dist/build/webpack/plugins/deferred-entries-plugin.js +9 -0
- package/app/node_modules/next/dist/build/webpack/plugins/flight-manifest-plugin.js +2 -6
- package/app/node_modules/next/dist/build/webpack/plugins/middleware-plugin.js +1 -5
- package/app/node_modules/next/dist/build/webpack/plugins/next-trace-entrypoints-plugin.js +2 -10
- package/app/node_modules/next/dist/build/webpack/plugins/next-types-plugin/index.js +3 -1
- package/app/node_modules/next/dist/build/webpack/plugins/slow-module-detection-plugin.js +3 -15
- package/app/node_modules/next/dist/build/webpack/plugins/subresource-integrity-plugin.js +1 -5
- package/app/node_modules/next/dist/build/webpack-config.js +16 -33
- package/app/node_modules/next/dist/cli/next-test.js +4 -0
- package/app/node_modules/next/dist/client/app-call-server.js +16 -18
- package/app/node_modules/next/dist/client/components/app-router-instance.js +43 -187
- package/app/node_modules/next/dist/client/components/{segment-cache/navigation.js → app-router-state.js} +88 -334
- package/app/node_modules/next/dist/client/components/app-router-utils.js +1 -5
- package/app/node_modules/next/dist/client/components/app-router.js +83 -74
- package/app/node_modules/next/dist/client/components/dev-root-http-access-fallback-boundary.js +1 -5
- package/app/node_modules/next/dist/client/components/forbidden.js +2 -10
- package/app/node_modules/next/dist/client/components/handle-isr-error.js +19 -4
- package/app/node_modules/next/dist/client/components/instant-samples.js +4 -11
- package/app/node_modules/next/dist/client/components/links.js +6 -7
- package/app/node_modules/next/dist/client/components/navigation-dynamic-rendering.js +3 -3
- package/app/node_modules/next/dist/client/components/navigation-untracked.js +1 -2
- package/app/node_modules/next/dist/client/components/navigation.js +2 -6
- package/app/node_modules/next/dist/client/components/navigation.react-server.js +1 -5
- package/app/node_modules/next/dist/client/components/navigator.js +73 -0
- package/app/node_modules/next/dist/client/components/not-found.js +1 -5
- package/app/node_modules/next/dist/client/components/prefetch.js +83 -0
- package/app/node_modules/next/dist/client/components/readonly-url-search-params.js +0 -5
- package/app/node_modules/next/dist/client/components/redirect.js +3 -15
- package/app/node_modules/next/dist/client/components/{router-reducer/ppr-navigations.js → render-tree.js} +365 -400
- package/app/node_modules/next/dist/client/components/router-reducer/compute-changed-path.js +13 -5
- package/app/node_modules/next/dist/client/components/router-reducer/create-initial-router-state.js +67 -54
- package/app/node_modules/next/dist/client/components/router-reducer/create-router-cache-key.js +1 -7
- package/app/node_modules/next/dist/client/components/router-reducer/create-segment-key.js +42 -0
- package/app/node_modules/next/dist/client/components/router-reducer/fetch-server-response.js +71 -50
- package/app/node_modules/next/dist/client/components/router-reducer/is-navigating-to-new-root-layout.js +4 -4
- package/app/node_modules/next/dist/client/components/router-reducer/reducers/hmr-refresh-reducer.js +2 -2
- package/app/node_modules/next/dist/client/components/router-reducer/reducers/navigate-reducer.js +5 -5
- package/app/node_modules/next/dist/client/components/router-reducer/reducers/refresh-reducer.js +11 -8
- package/app/node_modules/next/dist/client/components/router-reducer/reducers/restore-reducer.js +12 -9
- package/app/node_modules/next/dist/client/components/router-reducer/reducers/server-action-reducer.js +30 -29
- package/app/node_modules/next/dist/client/components/router-reducer/reducers/server-patch-reducer.js +5 -5
- package/app/node_modules/next/dist/client/components/router-reducer/router-reducer.js +2 -10
- package/app/node_modules/next/dist/client/components/segment-cache/bfcache.js +11 -21
- package/app/node_modules/next/dist/client/components/segment-cache/cache.js +1168 -1181
- package/app/node_modules/next/dist/client/components/segment-cache/decode-server-response.js +419 -0
- package/app/node_modules/next/dist/client/components/segment-cache/navigation-testing-lock.js +1 -1
- package/app/node_modules/next/dist/client/components/segment-cache/optimistic-routes.js +77 -82
- package/app/node_modules/next/dist/client/components/segment-cache/scheduler.js +464 -425
- package/app/node_modules/next/dist/client/components/segment-cache/types.js +12 -3
- package/app/node_modules/next/dist/client/components/segment-cache/vary-path.js +140 -126
- package/app/node_modules/next/dist/client/components/sequential-router-queue.js +163 -0
- package/app/node_modules/next/dist/client/components/unauthorized.js +2 -10
- package/app/node_modules/next/dist/client/components/unstable-rethrow.js +1 -2
- package/app/node_modules/next/dist/client/components/use-action-queue.js +2 -10
- package/app/node_modules/next/dist/client/dev/debug-channel.js +6 -323
- package/app/node_modules/next/dist/client/dev/hot-reloader/app/hot-reloader-app.js +49 -31
- package/app/node_modules/next/dist/client/dev/hot-reloader/app/web-socket.js +14 -21
- package/app/node_modules/next/dist/client/dev/hot-reloader/pages/hot-reloader-pages.js +15 -6
- package/app/node_modules/next/dist/client/dev/hot-reloader/runtime-error-state.js +72 -0
- package/app/node_modules/next/dist/client/flight-data-helpers.js +41 -94
- package/app/node_modules/next/dist/client/route-loader.js +6 -30
- package/app/node_modules/next/dist/client/route-params.js +34 -12
- package/app/node_modules/next/dist/client/router.js +2 -10
- package/app/node_modules/next/dist/client/sequential-call-server.js +45 -0
- package/app/node_modules/next/dist/compiled/@mswjs/interceptors/ClientRequest/index.js +1 -1
- package/app/node_modules/next/dist/compiled/next-devtools/index.js +279 -229
- package/app/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.prod.js +203 -59
- package/app/node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +203 -59
- package/app/node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js +203 -59
- package/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js +203 -59
- package/app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js +5 -3
- package/app/node_modules/next/dist/compiled/next-server/pages-turbo.runtime.prod.js +13 -13
- package/app/node_modules/next/dist/compiled/next-server/pages.runtime.prod.js +13 -13
- package/app/node_modules/next/dist/compiled/react-is/package.json +1 -1
- package/app/node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js +1 -1
- package/app/node_modules/next/dist/compiled/unistore/unistore.js +1 -1
- package/app/node_modules/next/dist/experimental/testmode/fetch.js +2 -10
- package/app/node_modules/next/dist/export/helpers/create-incremental-cache.js +21 -16
- package/app/node_modules/next/dist/export/utils.js +21 -8
- package/app/node_modules/next/dist/lib/batcher.js +2 -2
- package/app/node_modules/next/dist/lib/dist-dir.js +88 -0
- package/app/node_modules/next/dist/lib/download-swc.js +2 -10
- package/app/node_modules/next/dist/lib/fallback.js +3 -15
- package/app/node_modules/next/dist/lib/find-pages-dir.js +2 -10
- package/app/node_modules/next/dist/lib/helpers/get-cache-directory.js +1 -5
- package/app/node_modules/next/dist/lib/helpers/get-registry.js +1 -5
- package/app/node_modules/next/dist/lib/is-error.js +3 -15
- package/app/node_modules/next/dist/lib/is-serializable-props.js +6 -35
- package/app/node_modules/next/dist/lib/patch-incorrect-lockfile.js +4 -8
- package/app/node_modules/next/dist/lib/picocolors.js +10 -0
- package/app/node_modules/next/dist/lib/recursive-delete.js +50 -11
- package/app/node_modules/next/dist/lib/resolve-from.js +2 -10
- package/app/node_modules/next/dist/lib/static-env.js +1 -5
- package/app/node_modules/next/dist/lib/typescript/getTypeScriptConfiguration.js +3 -15
- package/app/node_modules/next/dist/lib/typescript/missingDependencyError.js +1 -5
- package/app/node_modules/next/dist/lib/typescript/runTypeCheck.js +1 -9
- package/app/node_modules/next/dist/lib/typescript/runTypeCheckCli.js +0 -1
- package/app/node_modules/next/dist/lib/typescript/runTypeScriptCli.js +4 -16
- package/app/node_modules/next/dist/lib/verify-partytown-setup.js +1 -5
- package/app/node_modules/next/dist/lib/warn-missing-react-dependencies.js +33 -0
- package/app/node_modules/next/dist/next-devtools/server/attach-nodejs-debugger-middleware.js +1 -5
- package/app/node_modules/next/dist/next-devtools/server/shared.js +3 -2
- package/app/node_modules/next/dist/next-devtools/shared/console-error.js +1 -5
- package/app/node_modules/next/dist/next-devtools/userspace/app/errors/replay-ssr-only-errors.js +1 -5
- package/app/node_modules/next/dist/next-devtools/userspace/app/errors/runtime-error-metadata.js +39 -0
- package/app/node_modules/next/dist/next-devtools/userspace/app/errors/stitched-error.js +1 -5
- package/app/node_modules/next/dist/next-devtools/userspace/app/errors/use-error-handler.js +48 -19
- package/app/node_modules/next/dist/next-devtools/userspace/app/segment-explorer-node.js +1 -5
- package/app/node_modules/next/dist/server/accept-header.js +3 -15
- package/app/node_modules/next/dist/server/after/after-context.js +5 -25
- package/app/node_modules/next/dist/server/after/awaiter.js +1 -5
- package/app/node_modules/next/dist/server/after/run-with-after.js +2 -2
- package/app/node_modules/next/dist/server/api-utils/index.js +1 -10
- package/app/node_modules/next/dist/server/api-utils/node/parse-body.js +3 -15
- package/app/node_modules/next/dist/server/app-render/action-async-storage-instance.js +1 -1
- package/app/node_modules/next/dist/server/app-render/action-handler.js +104 -141
- package/app/node_modules/next/dist/server/app-render/after-task-async-storage-instance.js +1 -1
- package/app/node_modules/next/dist/server/app-render/app-render-prerender-utils.js +6 -30
- package/app/node_modules/next/dist/server/app-render/app-render-render-utils.js +1 -5
- package/app/node_modules/next/dist/server/app-render/app-render-scheduling.js +3 -15
- package/app/node_modules/next/dist/server/app-render/app-render.js +1346 -1211
- package/app/node_modules/next/dist/server/app-render/async-local-storage.js +11 -6
- package/app/node_modules/next/dist/server/app-render/blocking-route-messages.js +119 -70
- package/app/node_modules/next/dist/server/app-render/cache-signal.js +61 -35
- package/app/node_modules/next/dist/server/app-render/console-async-storage-instance.js +1 -1
- package/app/node_modules/next/dist/server/app-render/create-component-tree.js +136 -160
- package/app/node_modules/next/dist/server/app-render/create-error-handler.js +12 -6
- package/app/node_modules/next/dist/server/app-render/create-transport-tree-from-loader-tree.js +190 -0
- package/app/node_modules/next/dist/server/app-render/debug-channel-server.web.js +1 -5
- package/app/node_modules/next/dist/server/app-render/dev-validation-scheduler.js +4 -5
- package/app/node_modules/next/dist/server/app-render/dev-validation-worker-snapshot.js +3 -1
- package/app/node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js +1 -1
- package/app/node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js +26 -3
- package/app/node_modules/next/dist/server/app-render/dynamic-rendering-client.js +124 -0
- package/app/node_modules/next/dist/server/app-render/dynamic-rendering.js +260 -329
- package/app/node_modules/next/dist/server/app-render/encryption-utils.js +1 -5
- package/app/node_modules/next/dist/server/app-render/instant-validation/boundary-tracking.js +2 -2
- package/app/node_modules/next/dist/server/app-render/instant-validation/instant-config.js +4 -12
- package/app/node_modules/next/dist/server/app-render/instant-validation/instant-samples.js +13 -62
- package/app/node_modules/next/dist/server/app-render/instant-validation/stream-utils.js +2 -10
- package/app/node_modules/next/dist/server/app-render/manifests-singleton.js +110 -38
- package/app/node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js +1 -1
- package/app/node_modules/next/dist/server/app-render/parse-and-validate-flight-router-state.js +3 -15
- package/app/node_modules/next/dist/server/app-render/postponed-state.js +87 -51
- package/app/node_modules/next/dist/server/app-render/prospective-render-utils.js +2 -6
- package/app/node_modules/next/dist/server/app-render/render-in-browser.js +27 -0
- package/app/node_modules/next/dist/server/app-render/required-scripts.js +1 -5
- package/app/node_modules/next/dist/server/app-render/segment-config/ensure-static.js +206 -0
- package/app/node_modules/next/dist/server/app-render/staged-rendering.js +46 -54
- package/app/node_modules/next/dist/server/app-render/stream-ops.node.js +18 -12
- package/app/node_modules/next/dist/server/app-render/stream-ops.web.js +4 -20
- package/app/node_modules/next/dist/server/app-render/sync-io-messages.js +2 -10
- package/app/node_modules/next/dist/server/app-render/types.js +2 -1
- package/app/node_modules/next/dist/server/app-render/use-flight-response.js +4 -17
- package/app/node_modules/next/dist/server/app-render/vary-params.js +12 -11
- package/app/node_modules/next/dist/server/app-render/walk-tree-with-flight-router-state.js +95 -97
- package/app/node_modules/next/dist/server/app-render/work-async-storage-instance.js +1 -1
- package/app/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js +1 -1
- package/app/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js +36 -26
- package/app/node_modules/next/dist/server/async-storage/draft-mode-provider.js +1 -5
- package/app/node_modules/next/dist/server/async-storage/request-store.js +6 -5
- package/app/node_modules/next/dist/server/async-storage/work-store.js +24 -26
- package/app/node_modules/next/dist/server/base-http/node.js +1 -5
- package/app/node_modules/next/dist/server/base-server.js +346 -155
- package/app/node_modules/next/dist/server/client-component-renderer-logger.js +129 -28
- package/app/node_modules/next/dist/server/config-schema.js +61 -9
- package/app/node_modules/next/dist/server/config-shared.js +26 -4
- package/app/node_modules/next/dist/server/config.js +154 -332
- package/app/node_modules/next/dist/server/dev/debug-channel.js +1 -5
- package/app/node_modules/next/dist/server/dev/dev-validation-worker-pool.js +1 -0
- package/app/node_modules/next/dist/server/dev/get-source-map-from-file.js +5 -25
- package/app/node_modules/next/dist/server/dev/hot-middleware.js +27 -1
- package/app/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +338 -200
- package/app/node_modules/next/dist/server/dev/hot-reloader-types.js +3 -0
- package/app/node_modules/next/dist/server/dev/hot-reloader-webpack.js +26 -20
- package/app/node_modules/next/dist/server/dev/messages.js +2 -10
- package/app/node_modules/next/dist/server/dev/middleware-turbopack.js +4 -20
- package/app/node_modules/next/dist/server/dev/middleware-webpack.js +2 -10
- package/app/node_modules/next/dist/server/dev/next-dev-server.js +33 -95
- package/app/node_modules/next/dist/server/dev/node-stack-frames.js +2 -19
- package/app/node_modules/next/dist/server/dev/on-demand-entry-handler.js +12 -12
- package/app/node_modules/next/dist/server/dev/runtime-error-state.js +220 -0
- package/app/node_modules/next/dist/server/dev/serialized-errors.js +1 -5
- package/app/node_modules/next/dist/server/dev/static-paths-worker.js +16 -15
- package/app/node_modules/next/dist/server/dev/turbopack-utils.js +20 -36
- package/app/node_modules/next/dist/server/dev/use-cache-probe-pool.js +1 -0
- package/app/node_modules/next/dist/server/dynamic-rendering-utils.js +298 -55
- package/app/node_modules/next/dist/server/image-optimizer/detect-content-type.js +229 -0
- package/app/node_modules/next/dist/server/image-optimizer/extract-etag.js +53 -0
- package/app/node_modules/next/dist/server/image-optimizer/get-image-size.js +25 -0
- package/app/node_modules/next/dist/server/image-optimizer/get-max-age.js +41 -0
- package/app/node_modules/next/dist/server/image-optimizer/get-previously-cached-image-or-null.js +22 -0
- package/app/node_modules/next/dist/server/image-optimizer/image-error.js +23 -0
- package/app/node_modules/next/dist/server/image-optimizer/image-type.js +86 -0
- package/app/node_modules/next/dist/server/image-optimizer/transform.js +227 -0
- package/app/node_modules/next/dist/server/image-optimizer.js +78 -674
- package/app/node_modules/next/dist/server/lib/app-info-log.js +19 -9
- package/app/node_modules/next/dist/server/lib/cache-handlers/default.js +9 -13
- package/app/node_modules/next/dist/server/lib/chrome-devtools-workspace.js +1 -5
- package/app/node_modules/next/dist/server/lib/dedupe-fetch.js +1 -5
- package/app/node_modules/next/dist/server/lib/dev-bundler-service.js +6 -6
- package/app/node_modules/next/dist/server/lib/generate-agent-files.js +158 -35
- package/app/node_modules/next/dist/server/lib/i18n-provider.js +1 -5
- package/app/node_modules/next/dist/server/lib/incremental-cache/file-system-cache.js +14 -20
- package/app/node_modules/next/dist/server/lib/incremental-cache/index.js +19 -29
- package/app/node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js +1 -5
- package/app/node_modules/next/dist/server/lib/lru-cache.js +1 -5
- package/app/node_modules/next/dist/server/lib/mock-request.js +24 -120
- package/app/node_modules/next/dist/server/lib/module-loader/node-module-loader.js +1 -5
- package/app/node_modules/next/dist/server/lib/patch-fetch.js +44 -38
- package/app/node_modules/next/dist/server/lib/postponed-request-body.js +1 -5
- package/app/node_modules/next/dist/server/lib/render-server.js +2 -10
- package/app/node_modules/next/dist/server/lib/router-server.js +106 -36
- package/app/node_modules/next/dist/server/lib/router-utils/build-data-route.js +26 -3
- package/app/node_modules/next/dist/server/lib/router-utils/cache-life-type-utils.js +14 -45
- package/app/node_modules/next/dist/server/lib/router-utils/decode-path-params.js +1 -5
- package/app/node_modules/next/dist/server/lib/router-utils/filesystem.js +212 -31
- package/app/node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js +61 -1
- package/app/node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js +1 -5
- package/app/node_modules/next/dist/server/lib/router-utils/normalize-catchall-routes.js +320 -0
- package/app/node_modules/next/dist/server/lib/router-utils/proxy-request.js +2 -2
- package/app/node_modules/next/dist/server/lib/router-utils/resolve-routes.js +17 -11
- package/app/node_modules/next/dist/server/lib/router-utils/setup-dev-bundler.js +258 -76
- package/app/node_modules/next/dist/server/lib/router-utils/strict-route-matching-config.js +28 -0
- package/app/node_modules/next/dist/server/lib/router-utils/typegen.js +56 -10
- package/app/node_modules/next/dist/server/lib/start-server.js +48 -38
- package/app/node_modules/next/dist/server/lib/trace/constants.js +40 -0
- package/app/node_modules/next/dist/server/lib/trace/request-insights-identity.js +1 -3
- package/app/node_modules/next/dist/server/lib/trace/tracer.js +10 -10
- package/app/node_modules/next/dist/server/lib/utils.js +66 -15
- package/app/node_modules/next/dist/server/load-components.js +7 -2
- package/app/node_modules/next/dist/server/load-manifest.external.js +16 -17
- package/app/node_modules/next/dist/server/mcp/tools/utils/browser-communication.js +2 -10
- package/app/node_modules/next/dist/server/mcp/tools/utils/format-errors.js +5 -5
- package/app/node_modules/next/dist/server/next-server.js +130 -124
- package/app/node_modules/next/dist/server/next.js +25 -37
- package/app/node_modules/next/dist/server/node-environment-extensions/console-dim.external.js +1 -2
- package/app/node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js +115 -62
- package/app/node_modules/next/dist/server/node-environment-extensions/global-behaviors.js +1 -5
- package/app/node_modules/next/dist/server/node-environment-extensions/io-utils.js +11 -10
- package/app/node_modules/next/dist/server/node-environment-extensions/process-error-handlers.js +0 -9
- package/app/node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js +1 -12
- package/app/node_modules/next/dist/server/normalizers/built/app/app-page-normalizer.js +1 -1
- package/app/node_modules/next/dist/server/normalizers/request/base-path.js +1 -5
- package/app/node_modules/next/dist/server/normalizers/request/next-data.js +1 -5
- package/app/node_modules/next/dist/server/normalizers/request/prefix.js +1 -5
- package/app/node_modules/next/dist/server/patch-error-inspect.js +19 -11
- package/app/node_modules/next/dist/server/pipe-readable.js +42 -30
- package/app/node_modules/next/dist/server/render-result.js +5 -17
- package/app/node_modules/next/dist/server/render.js +37 -183
- package/app/node_modules/next/dist/server/request/fallback-params.js +23 -9
- package/app/node_modules/next/dist/server/response-cache/index.js +54 -32
- package/app/node_modules/next/dist/server/response-cache/utils.js +1 -5
- package/app/node_modules/next/dist/server/resume-data-cache/cache-store.js +18 -0
- package/app/node_modules/next/dist/server/resume-data-cache/resume-data-cache.js +51 -49
- package/app/node_modules/next/dist/server/revalidation-utils.js +15 -13
- package/app/node_modules/next/dist/server/route-modules/app-page/dev-render-context.js +23 -0
- package/app/node_modules/next/dist/server/route-modules/app-page/helpers/prerender-manifest-matcher.js +5 -4
- package/app/node_modules/next/dist/server/route-modules/app-page/module.js +13 -1
- package/app/node_modules/next/dist/server/route-modules/app-page/module.render.js +26 -11
- package/app/node_modules/next/dist/server/route-modules/app-page/parse-request-headers.js +58 -0
- package/app/node_modules/next/dist/server/route-modules/app-page/vendored/rsc/entrypoints.js +1 -5
- package/app/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/entrypoints.js +1 -5
- package/app/node_modules/next/dist/server/route-modules/pages/module.render.js +1 -5
- package/app/node_modules/next/dist/server/route-modules/pages/pages-handler.js +20 -16
- package/app/node_modules/next/dist/server/route-modules/route-module.js +57 -61
- package/app/node_modules/next/dist/server/serve-static.js +1 -5
- package/app/node_modules/next/dist/server/setup-http-agent-env.js +1 -5
- package/app/node_modules/next/dist/server/stream-utils/encoded-tags.js +1 -1
- package/app/node_modules/next/dist/server/stream-utils/node-web-streams-helper.js +7 -11
- package/app/node_modules/next/dist/server/typescript/constant.js +2 -0
- package/app/node_modules/next/dist/server/typescript/rules/config.js +29 -2
- package/app/node_modules/next/dist/server/use-cache/cache-life-profile.js +6 -30
- package/app/node_modules/next/dist/server/use-cache/constants.js +1 -5
- package/app/node_modules/next/dist/server/use-cache/handlers.js +27 -36
- package/app/node_modules/next/dist/server/use-cache/tiered-cache-handler.js +6 -4
- package/app/node_modules/next/dist/server/web/adapter.js +14 -35
- package/app/node_modules/next/dist/server/web/error.js +0 -15
- package/app/node_modules/next/dist/server/web/globals.js +3 -15
- package/app/node_modules/next/dist/server/web/next-url.js +1 -5
- package/app/node_modules/next/dist/server/web/sandbox/context.js +10 -34
- package/app/node_modules/next/dist/server/web/sandbox/sandbox.js +1 -5
- package/app/node_modules/next/dist/server/web/spec-extension/adapters/headers.js +0 -5
- package/app/node_modules/next/dist/server/web/spec-extension/adapters/next-request.js +1 -5
- package/app/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js +0 -5
- package/app/node_modules/next/dist/server/web/spec-extension/fetch-event.js +2 -10
- package/app/node_modules/next/dist/server/web/spec-extension/response.js +2 -10
- package/app/node_modules/next/dist/server/web/utils.js +1 -5
- package/app/node_modules/next/dist/server/web/web-on-close.js +2 -10
- package/app/node_modules/next/dist/shared/lib/app-router-types.js +38 -28
- package/app/node_modules/next/dist/shared/lib/constants.js +5 -0
- package/app/node_modules/next/dist/shared/lib/deployment-id.js +1 -1
- package/app/node_modules/next/dist/shared/lib/errors/code-frame.js +3 -2
- package/app/node_modules/next/dist/shared/lib/errors/empty-generate-static-params-error.js +1 -5
- package/app/node_modules/next/dist/shared/lib/errors/ensure-static-gsp-errors.js +30 -0
- package/app/node_modules/next/dist/shared/lib/errors/hard-deprecated-config-error.js +0 -5
- package/app/node_modules/next/dist/shared/lib/errors/incompatible-parallel-route-slots-error.js +36 -0
- package/app/node_modules/next/dist/shared/lib/errors/missing-canonical-interception-routes-error.js +20 -0
- package/app/node_modules/next/dist/shared/lib/errors/unmatched-app-pages-error.js +20 -0
- package/app/node_modules/next/dist/shared/lib/get-rspack.js +1 -5
- package/app/node_modules/next/dist/shared/lib/html-context.shared-runtime.js +1 -5
- package/app/node_modules/next/dist/shared/lib/image-config.js +52 -1
- package/app/node_modules/next/dist/shared/lib/instant-messages.js +2 -10
- package/app/node_modules/next/dist/shared/lib/invariant-error.js +0 -5
- package/app/node_modules/next/dist/shared/lib/lazy-dynamic/react-browser-bailout.js +45 -0
- package/app/node_modules/next/dist/shared/lib/magic-identifier.js +5 -25
- package/app/node_modules/next/dist/shared/lib/match-remote-pattern.js +1 -5
- package/app/node_modules/next/dist/shared/lib/router/router.js +95 -77
- package/app/node_modules/next/dist/shared/lib/router/routes/app.js +3 -15
- package/app/node_modules/next/dist/shared/lib/router/utils/app-paths.js +6 -1
- package/app/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +4 -12
- package/app/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +63 -20
- package/app/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js +1 -5
- package/app/node_modules/next/dist/shared/lib/router/utils/prepare-destination.js +1 -5
- package/app/node_modules/next/dist/shared/lib/router/utils/querystring.js +31 -0
- package/app/node_modules/next/dist/shared/lib/router/utils/resolve-param-value.js +1 -5
- package/app/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +1 -5
- package/app/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +11 -55
- package/app/node_modules/next/dist/shared/lib/rsc-transport.js +108 -0
- package/app/node_modules/next/dist/shared/lib/segment-cache/segment-value-encoding.js +0 -13
- package/app/node_modules/next/dist/shared/lib/segment-cache/vary-params-decoding.js +48 -27
- package/app/node_modules/next/dist/shared/lib/segment.js +1 -13
- package/app/node_modules/next/dist/shared/lib/turbopack/compilation-events.js +7 -7
- package/app/node_modules/next/dist/shared/lib/turbopack/internal-error.js +2 -7
- package/app/node_modules/next/dist/shared/lib/turbopack/manifest-loader.js +2 -6
- package/app/node_modules/next/dist/shared/lib/turbopack/utils.js +3 -11
- package/app/node_modules/next/dist/shared/lib/utils.js +2 -11
- package/app/node_modules/next/dist/shared/lib/zod.js +2 -6
- package/app/node_modules/next/dist/telemetry/anonymous-meta.js +1 -1
- package/app/node_modules/next/dist/telemetry/detached-flush.js +8 -15
- package/app/node_modules/next/dist/telemetry/events/build.js +1 -2
- package/app/node_modules/next/dist/telemetry/events/swc-load-failure.js +1 -1
- package/app/node_modules/next/dist/telemetry/events/version.js +2 -2
- package/app/node_modules/next/dist/telemetry/post-telemetry-payload.js +1 -5
- package/app/node_modules/next/dist/telemetry/storage.js +31 -19
- package/app/node_modules/next/dist/trace/report/index.js +5 -2
- package/app/node_modules/next/dist/trace/report/to-json-build.js +4 -2
- package/app/node_modules/next/dist/trace/report/to-json.js +141 -97
- package/app/node_modules/next/dist/trace/trace.js +14 -9
- package/app/node_modules/next/package.json +12 -11
- package/app/package.json +4 -4
- package/app/server.js +1 -1
- package/app/src/mitm/server.js +43 -39
- package/package.json +1 -1
- package/app/.next-cli-build/static/chunks/1321-c5b3011761e0228b.js +0 -1
- package/app/.next-cli-build/static/chunks/3794-83acfce05009cf38.js +0 -52
- package/app/.next-cli-build/static/chunks/4bd1b696-8a4ab4fdf0ae305a.js +0 -1
- package/app/.next-cli-build/static/chunks/5353-d31cc8d476bc534e.js +0 -1
- package/app/.next-cli-build/static/chunks/5772-6cf78180ecf9dce0.js +0 -3
- package/app/.next-cli-build/static/chunks/6069-7e7f824c6e2d4291.js +0 -73
- package/app/.next-cli-build/static/chunks/7504-6f7ca1eab428dd5e.js +0 -64
- package/app/.next-cli-build/static/chunks/8202.1ffc6ce531e066ce.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/page-90b9aed7279ea50e.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/page-eaf6e24edeca4e51.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-2f53d5dd5b247cf1.js +0 -11
- package/app/.next-cli-build/static/chunks/main-1eaba0b776683ce7.js +0 -5
- package/app/node_modules/next/dist/build/webpack/loaders/lightningcss-loader/src/minify.js +0 -94
- package/app/node_modules/next/dist/client/components/match-segments.js +0 -32
- package/app/node_modules/next/dist/client/components/router-reducer/reducers/find-head-in-cache.js +0 -63
- package/app/node_modules/next/dist/client/components/segment-cache/prefetch.js +0 -32
- package/app/node_modules/next/dist/compiled/webpack-sources3/index.js +0 -1
- package/app/node_modules/next/dist/compiled/webpack-sources3/package.json +0 -1
- package/app/node_modules/next/dist/lib/detached-promise.js +0 -32
- package/app/node_modules/next/dist/lib/error-telemetry-utils.js +0 -42
- package/app/node_modules/next/dist/next-devtools/server/get-next-error-feedback-middleware.js +0 -42
- package/app/node_modules/next/dist/server/app-render/create-flight-router-state-from-loader-tree.js +0 -154
- package/app/node_modules/next/dist/server/lib/experimental/ppr.js +0 -47
- package/app/node_modules/next/dist/server/lib/params-utils.js +0 -70
- package/app/node_modules/next/dist/server/lib/router-utils/is-postpone.js +0 -16
- package/app/node_modules/next/dist/server/route-matcher-managers/default-route-matcher-manager.js +0 -239
- package/app/node_modules/next/dist/server/route-matcher-managers/dev-route-matcher-manager.js +0 -120
- package/app/node_modules/next/dist/server/route-matcher-providers/app-page-route-matcher-provider.js +0 -55
- package/app/node_modules/next/dist/server/route-matcher-providers/app-route-route-matcher-provider.js +0 -43
- package/app/node_modules/next/dist/server/route-matcher-providers/dev/dev-app-page-route-matcher-provider.js +0 -91
- package/app/node_modules/next/dist/server/route-matcher-providers/dev/dev-app-route-route-matcher-provider.js +0 -112
- package/app/node_modules/next/dist/server/route-matcher-providers/dev/dev-pages-api-route-matcher-provider.js +0 -77
- package/app/node_modules/next/dist/server/route-matcher-providers/dev/dev-pages-route-matcher-provider.js +0 -77
- package/app/node_modules/next/dist/server/route-matcher-providers/dev/file-cache-route-matcher-provider.js +0 -28
- package/app/node_modules/next/dist/server/route-matcher-providers/dev/helpers/file-reader/batched-file-reader.js +0 -106
- package/app/node_modules/next/dist/server/route-matcher-providers/dev/helpers/file-reader/default-file-reader.js +0 -42
- package/app/node_modules/next/dist/server/route-matcher-providers/helpers/cached-route-matcher-provider.js +0 -30
- package/app/node_modules/next/dist/server/route-matcher-providers/helpers/manifest-loaders/node-manifest-loader.js +0 -34
- package/app/node_modules/next/dist/server/route-matcher-providers/helpers/manifest-loaders/server-manifest-loader.js +0 -20
- package/app/node_modules/next/dist/server/route-matcher-providers/manifest-route-matcher-provider.js +0 -21
- package/app/node_modules/next/dist/server/route-matcher-providers/pages-api-route-matcher-provider.js +0 -55
- package/app/node_modules/next/dist/server/route-matcher-providers/pages-route-matcher-provider.js +0 -64
- package/app/node_modules/next/dist/server/route-matchers/app-page-route-matcher.js +0 -18
- package/app/node_modules/next/dist/server/route-matchers/app-route-route-matcher.js +0 -15
- package/app/node_modules/next/dist/server/route-matchers/locale-route-matcher.js +0 -68
- package/app/node_modules/next/dist/server/route-matchers/pages-api-route-matcher.js +0 -30
- package/app/node_modules/next/dist/server/route-matchers/pages-route-matcher.js +0 -30
- package/app/node_modules/next/dist/server/route-matchers/route-matcher.js +0 -54
- package/app/node_modules/next/dist/telemetry/events/error-feedback.js +0 -31
- /package/app/.next-cli-build/static/{i0cMBMqFdYWpbajovDyfY → KAn3kSXbD7TmQ0msMIDxv}/_buildManifest.js +0 -0
- /package/app/.next-cli-build/static/{i0cMBMqFdYWpbajovDyfY → KAn3kSXbD7TmQ0msMIDxv}/_ssgManifest.js +0 -0
|
@@ -37,6 +37,9 @@ const _removetrailingslash = require("../shared/lib/router/utils/remove-trailing
|
|
|
37
37
|
const _denormalizepagepath = require("../shared/lib/page-path/denormalize-page-path");
|
|
38
38
|
const _log = /*#__PURE__*/ _interop_require_wildcard(require("../build/output/log"));
|
|
39
39
|
const _serverutils = require("./server-utils");
|
|
40
|
+
const _isapiroute = require("../lib/is-api-route");
|
|
41
|
+
const _isapppageroute = require("../lib/is-app-page-route");
|
|
42
|
+
const _isapprouteroute = require("../lib/is-app-route-route");
|
|
40
43
|
const _iserror = /*#__PURE__*/ _interop_require_wildcard(require("../lib/is-error"));
|
|
41
44
|
const _requestmeta = require("./request-meta");
|
|
42
45
|
const _removepathprefix = require("../shared/lib/router/utils/remove-path-prefix");
|
|
@@ -47,12 +50,9 @@ const _getnextpathnameinfo = require("../shared/lib/router/utils/get-next-pathna
|
|
|
47
50
|
const _approuterheaders = require("../client/components/app-router-headers");
|
|
48
51
|
const _nanoid = require("next/dist/compiled/nanoid");
|
|
49
52
|
const _localeroutenormalizer = require("./normalizers/locale-route-normalizer");
|
|
50
|
-
const
|
|
51
|
-
const
|
|
52
|
-
const
|
|
53
|
-
const _pagesapiroutematcherprovider = require("./route-matcher-providers/pages-api-route-matcher-provider");
|
|
54
|
-
const _pagesroutematcherprovider = require("./route-matcher-providers/pages-route-matcher-provider");
|
|
55
|
-
const _servermanifestloader = require("./route-matcher-providers/helpers/manifest-loaders/server-manifest-loader");
|
|
53
|
+
const _apppageroutedefinition = require("./route-definitions/app-page-route-definition");
|
|
54
|
+
const _pages = require("./normalizers/built/pages");
|
|
55
|
+
const _app = require("./normalizers/built/app");
|
|
56
56
|
const _tracer = require("./lib/trace/tracer");
|
|
57
57
|
const _constants1 = require("./lib/trace/constants");
|
|
58
58
|
const _requestinsightsidentity = require("./lib/trace/request-insights-identity");
|
|
@@ -64,6 +64,7 @@ const _constants2 = require("../lib/constants");
|
|
|
64
64
|
const _normalizelocalepath = require("../shared/lib/i18n/normalize-locale-path");
|
|
65
65
|
const _matchnextdatapathname = require("./lib/match-next-data-pathname");
|
|
66
66
|
const _getroutefromassetpath = /*#__PURE__*/ _interop_require_default(require("../shared/lib/router/utils/get-route-from-asset-path"));
|
|
67
|
+
const _routematcher = require("../shared/lib/router/utils/route-matcher");
|
|
67
68
|
const _rsc = require("./normalizers/request/rsc");
|
|
68
69
|
const _stripflightheaders = require("./app-render/strip-flight-headers");
|
|
69
70
|
const _checks = require("./route-modules/checks");
|
|
@@ -73,13 +74,13 @@ const _interceptionroutes = require("../shared/lib/router/utils/interception-rou
|
|
|
73
74
|
const _toroute = require("./lib/to-route");
|
|
74
75
|
const _helpers = require("./base-http/helpers");
|
|
75
76
|
const _patchsetheader = require("./lib/patch-set-header");
|
|
76
|
-
const _ppr = require("./lib/experimental/ppr");
|
|
77
77
|
const _builtinrequestcontext = require("./after/builtin-request-context");
|
|
78
78
|
const _adapter = require("./web/adapter");
|
|
79
79
|
const _fallback = require("../lib/fallback");
|
|
80
80
|
const _segmentprefixrsc = require("./normalizers/request/segment-prefix-rsc");
|
|
81
81
|
const _streamingmetadata = require("./lib/streaming-metadata");
|
|
82
82
|
const _decodequerypathparameter = require("./lib/decode-query-path-parameter");
|
|
83
|
+
const _decodepathparams = require("./lib/router-utils/decode-path-params");
|
|
83
84
|
const _nofallbackerrorexternal = require("../shared/lib/no-fallback-error.external");
|
|
84
85
|
const _fixmojibake = require("./lib/fix-mojibake");
|
|
85
86
|
const _setcachebustingsearchparam = require("../client/components/router-reducer/set-cache-busting-search-param");
|
|
@@ -332,11 +333,7 @@ class Server {
|
|
|
332
333
|
}
|
|
333
334
|
if (this.nextConfig.experimental.runtimeServerDeploymentId) {
|
|
334
335
|
if (!process.env.NEXT_DEPLOYMENT_ID) {
|
|
335
|
-
throw
|
|
336
|
-
value: "E970",
|
|
337
|
-
enumerable: false,
|
|
338
|
-
configurable: true
|
|
339
|
-
});
|
|
336
|
+
throw new Error('process.env.NEXT_DEPLOYMENT_ID is missing but runtimeServerDeploymentId is enabled');
|
|
340
337
|
}
|
|
341
338
|
this.deploymentId = process.env.NEXT_DEPLOYMENT_ID;
|
|
342
339
|
} else {
|
|
@@ -353,6 +350,8 @@ class Server {
|
|
|
353
350
|
}
|
|
354
351
|
this.port = port;
|
|
355
352
|
this.distDir = _path.join(/* turbopackIgnore: true */ this.dir, this.nextConfig.distDir);
|
|
353
|
+
this.pagesNormalizers = new _pages.PagesNormalizers(this.distDir);
|
|
354
|
+
this.appNormalizers = new _app.AppNormalizers(this.distDir);
|
|
356
355
|
this.publicDir = this.getPublicDir();
|
|
357
356
|
this.hasStaticDir = !minimalMode && this.getHasStaticDir();
|
|
358
357
|
this.i18nProvider = ((_this_nextConfig_i18n = this.nextConfig.i18n) == null ? void 0 : _this_nextConfig_i18n.locales) ? new _i18nprovider.I18NProvider(this.nextConfig.i18n) : undefined;
|
|
@@ -365,7 +364,7 @@ class Server {
|
|
|
365
364
|
const minimalModeKey = 'minimalMode';
|
|
366
365
|
this[minimalModeKey] = minimalMode || !!process.env.NEXT_PRIVATE_MINIMAL_MODE;
|
|
367
366
|
this.enabledDirectories = this.getEnabledDirectories(dev);
|
|
368
|
-
this.isAppPPREnabled = this.enabledDirectories.app && (
|
|
367
|
+
this.isAppPPREnabled = this.enabledDirectories.app && Boolean(this.nextConfig.cacheComponents);
|
|
369
368
|
this.normalizers = {
|
|
370
369
|
// We should normalize the pathname from the RSC prefix only in minimal
|
|
371
370
|
// mode as otherwise that route is not exposed external to the server as
|
|
@@ -381,7 +380,7 @@ class Server {
|
|
|
381
380
|
trailingSlash: this.nextConfig.trailingSlash,
|
|
382
381
|
poweredByHeader: this.nextConfig.poweredByHeader,
|
|
383
382
|
generateEtags,
|
|
384
|
-
previewProps: this.
|
|
383
|
+
previewProps: this.getPreviewProps(),
|
|
385
384
|
basePath: this.nextConfig.basePath,
|
|
386
385
|
images: this.nextConfig.images,
|
|
387
386
|
optimizeCss: this.nextConfig.experimental.optimizeCss,
|
|
@@ -396,9 +395,7 @@ class Server {
|
|
|
396
395
|
enableTainting: this.nextConfig.experimental.taint,
|
|
397
396
|
crossOrigin: this.nextConfig.crossOrigin ? this.nextConfig.crossOrigin : undefined,
|
|
398
397
|
largePageDataBytes: this.nextConfig.experimental.largePageDataBytes,
|
|
399
|
-
isExperimentalCompile: this.nextConfig.experimental.isExperimentalCompile,
|
|
400
|
-
// `htmlLimitedBots` is passed to server as serialized config in string format
|
|
401
|
-
htmlLimitedBots: this.nextConfig.htmlLimitedBots,
|
|
398
|
+
isExperimentalCompile: options.compileMode ? options.compileMode.isExperimentalCompile : this.nextConfig.experimental.isExperimentalCompile,
|
|
402
399
|
cacheComponents: this.nextConfig.cacheComponents ?? false,
|
|
403
400
|
partialPrefetching: this.nextConfig.partialPrefetching,
|
|
404
401
|
validationLevel: this.nextConfig.experimental.instantInsights.validationLevel,
|
|
@@ -409,16 +406,19 @@ class Server {
|
|
|
409
406
|
clientParamParsingOrigins: this.nextConfig.experimental.clientParamParsingOrigins,
|
|
410
407
|
dynamicOnHover: this.nextConfig.experimental.dynamicOnHover ?? false,
|
|
411
408
|
optimisticRouting: this.nextConfig.experimental.optimisticRouting ?? false,
|
|
409
|
+
parallelRouteMetadata: this.nextConfig.experimental.parallelRouteMetadata ?? false,
|
|
412
410
|
inlineCss: this.nextConfig.experimental.inlineCss ?? false,
|
|
413
411
|
prefetchInlining: this.nextConfig.experimental.prefetchInlining ?? false,
|
|
414
412
|
authInterrupts: !!this.nextConfig.experimental.authInterrupts,
|
|
413
|
+
reactBrowserBailout: this.nextConfig.experimental.reactBrowserBailout ?? false,
|
|
415
414
|
serverComponentsHmrCancellation: this.nextConfig.experimental.serverComponentsHmrCancellation,
|
|
416
415
|
useCacheTimeout: this.nextConfig.experimental.useCacheTimeout,
|
|
416
|
+
durableUseCacheEntries: Boolean(this.nextConfig.experimental.durableUseCacheEntries),
|
|
417
417
|
cachedNavigations: this.nextConfig.experimental.cachedNavigations ?? false,
|
|
418
418
|
maxPostponedStateSizeBytes: (0, _configshared.parseMaxPostponedStateSize)(this.nextConfig.experimental.maxPostponedStateSize),
|
|
419
|
-
|
|
419
|
+
disableResumeDataCacheCompression: this.nextConfig.experimental.disableResumeDataCacheCompression ?? false,
|
|
420
|
+
exposeTestingApi: this.nextConfig.cacheComponents === true && (this.dev === true || this.nextConfig.experimental.exposeTestingApiInProductionBuild === true)
|
|
420
421
|
},
|
|
421
|
-
onInstrumentationRequestError: this.instrumentationOnRequestError.bind(this),
|
|
422
422
|
prefetchHints: {},
|
|
423
423
|
reactMaxHeadersLength: this.nextConfig.reactMaxHeadersLength,
|
|
424
424
|
logServerFunctions: typeof this.nextConfig.logging === 'object' && Boolean(this.nextConfig.logging.serverFunctions)
|
|
@@ -427,43 +427,8 @@ class Server {
|
|
|
427
427
|
this.appPathsManifest = this.getAppPathsManifest();
|
|
428
428
|
this.appPathRoutes = this.getAppPathRoutes();
|
|
429
429
|
this.interceptionRoutePatterns = this.getinterceptionRoutePatterns();
|
|
430
|
-
// Configure the routes.
|
|
431
|
-
this.matchers = this.getRouteMatchers();
|
|
432
|
-
// Start route compilation. We don't wait for the routes to finish loading
|
|
433
|
-
// because we use the `waitTillReady` promise below in `handleRequest` to
|
|
434
|
-
// wait. Also we can't `await` in the constructor.
|
|
435
|
-
void this.matchers.reload();
|
|
436
430
|
this.setAssetPrefix(assetPrefix);
|
|
437
431
|
}
|
|
438
|
-
reloadMatchers() {
|
|
439
|
-
return this.matchers.reload();
|
|
440
|
-
}
|
|
441
|
-
getRouteMatchers() {
|
|
442
|
-
// Create a new manifest loader that get's the manifests from the server.
|
|
443
|
-
const manifestLoader = new _servermanifestloader.ServerManifestLoader((name)=>{
|
|
444
|
-
switch(name){
|
|
445
|
-
case _constants.PAGES_MANIFEST:
|
|
446
|
-
return this.getPagesManifest() ?? null;
|
|
447
|
-
case _constants.APP_PATHS_MANIFEST:
|
|
448
|
-
return this.getAppPathsManifest() ?? null;
|
|
449
|
-
default:
|
|
450
|
-
return null;
|
|
451
|
-
}
|
|
452
|
-
});
|
|
453
|
-
// Configure the matchers and handlers.
|
|
454
|
-
const matchers = new _defaultroutematchermanager.DefaultRouteMatcherManager();
|
|
455
|
-
// Match pages under `pages/`.
|
|
456
|
-
matchers.push(new _pagesroutematcherprovider.PagesRouteMatcherProvider(this.distDir, manifestLoader, this.i18nProvider));
|
|
457
|
-
// Match api routes under `pages/api/`.
|
|
458
|
-
matchers.push(new _pagesapiroutematcherprovider.PagesAPIRouteMatcherProvider(this.distDir, manifestLoader, this.i18nProvider));
|
|
459
|
-
// If the app directory is enabled, then add the app matchers and handlers.
|
|
460
|
-
if (this.enabledDirectories.app) {
|
|
461
|
-
// Match app pages under `app/`.
|
|
462
|
-
matchers.push(new _apppageroutematcherprovider.AppPageRouteMatcherProvider(this.distDir, manifestLoader));
|
|
463
|
-
matchers.push(new _approuteroutematcherprovider.AppRouteRouteMatcherProvider(this.distDir, manifestLoader));
|
|
464
|
-
}
|
|
465
|
-
return matchers;
|
|
466
|
-
}
|
|
467
432
|
async instrumentationOnRequestError(...args) {
|
|
468
433
|
const [err, req, ctx] = args;
|
|
469
434
|
if (this.instrumentation) {
|
|
@@ -564,8 +529,6 @@ class Server {
|
|
|
564
529
|
async handleRequestImpl(req, res, parsedUrl) {
|
|
565
530
|
try {
|
|
566
531
|
var _originalRequest_socket, _originalRequest_socket1, _this_i18nProvider, _this_nextConfig_i18n;
|
|
567
|
-
// Wait for the matchers to be ready.
|
|
568
|
-
await this.matchers.waitTillReady();
|
|
569
532
|
// ensure cookies set in middleware are merged and
|
|
570
533
|
// not overridden by API routes/getServerSideProps
|
|
571
534
|
(0, _patchsetheader.patchSetHeaderWithCookieSupport)(req, (0, _helpers.isNodeNextResponse)(res) ? res.originalResponse : res);
|
|
@@ -583,20 +546,12 @@ class Server {
|
|
|
583
546
|
// Parse url if parsedUrl not provided
|
|
584
547
|
if (!parsedUrl || typeof parsedUrl !== 'object') {
|
|
585
548
|
if (!req.url) {
|
|
586
|
-
throw
|
|
587
|
-
value: "E123",
|
|
588
|
-
enumerable: false,
|
|
589
|
-
configurable: true
|
|
590
|
-
});
|
|
549
|
+
throw new Error('Invariant: url can not be undefined');
|
|
591
550
|
}
|
|
592
551
|
parsedUrl = (0, _parseurl.parseUrl)(req.url);
|
|
593
552
|
}
|
|
594
553
|
if (!parsedUrl.pathname) {
|
|
595
|
-
throw
|
|
596
|
-
value: "E412",
|
|
597
|
-
enumerable: false,
|
|
598
|
-
configurable: true
|
|
599
|
-
});
|
|
554
|
+
throw new Error("Invariant: pathname can't be empty");
|
|
600
555
|
}
|
|
601
556
|
// Parse the querystring ourselves if the user doesn't handle querystring parsing
|
|
602
557
|
if (typeof parsedUrl.query === 'string') {
|
|
@@ -704,19 +659,26 @@ class Server {
|
|
|
704
659
|
params: false,
|
|
705
660
|
hasValidParams: false
|
|
706
661
|
};
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
662
|
+
// A dynamic x-matched-path identifies the route pattern, not a
|
|
663
|
+
// concrete pathname. Match it by identity so a pattern such as
|
|
664
|
+
// `/[...path]` cannot be captured by the regex for `/[slug]`.
|
|
665
|
+
let routeDefinition;
|
|
666
|
+
if (pageIsDynamic) {
|
|
667
|
+
routeDefinition = this.getRoutePatternDefinition(srcPathname, localeAnalysisResult);
|
|
668
|
+
} else {
|
|
669
|
+
const match = this.getRouteMatch(srcPathname, localeAnalysisResult);
|
|
670
|
+
if (match) {
|
|
671
|
+
routeDefinition = match.definition;
|
|
672
|
+
// Update the source pathname to the matched page's pathname.
|
|
673
|
+
srcPathname = match.definition.pathname;
|
|
674
|
+
// The page is dynamic if the params are defined. We know at this
|
|
675
|
+
// stage that the matched path is not a static page if the params
|
|
676
|
+
// were parsed from the matched path header.
|
|
677
|
+
if (typeof match.params !== 'undefined') {
|
|
678
|
+
pageIsDynamic = true;
|
|
679
|
+
paramsResult.params = match.params;
|
|
680
|
+
paramsResult.hasValidParams = true;
|
|
681
|
+
}
|
|
720
682
|
}
|
|
721
683
|
}
|
|
722
684
|
// The rest of this function can't handle i18n properly, so ensure we
|
|
@@ -858,6 +820,39 @@ class Server {
|
|
|
858
820
|
}
|
|
859
821
|
}
|
|
860
822
|
}
|
|
823
|
+
// A platform route match can capture the locale as a dynamic param.
|
|
824
|
+
// Analyze the interpolated pathname again to remove that prefix, but
|
|
825
|
+
// preserve the original locale when it was already stripped above.
|
|
826
|
+
let finalLocaleAnalysisResult = localeAnalysisResult;
|
|
827
|
+
if (this.i18nProvider) {
|
|
828
|
+
const analyzedMatchedPath = this.i18nProvider.analyze(matchedPath, {
|
|
829
|
+
defaultLocale
|
|
830
|
+
});
|
|
831
|
+
const hasLocalePrefix = analyzedMatchedPath.pathname !== matchedPath;
|
|
832
|
+
if (hasLocalePrefix || !localeAnalysisResult) {
|
|
833
|
+
finalLocaleAnalysisResult = analyzedMatchedPath;
|
|
834
|
+
} else {
|
|
835
|
+
finalLocaleAnalysisResult = {
|
|
836
|
+
...localeAnalysisResult,
|
|
837
|
+
pathname: matchedPath
|
|
838
|
+
};
|
|
839
|
+
}
|
|
840
|
+
matchedPath = finalLocaleAnalysisResult.pathname;
|
|
841
|
+
(0, _requestmeta.addRequestMeta)(req, 'locale', finalLocaleAnalysisResult.detectedLocale);
|
|
842
|
+
if (finalLocaleAnalysisResult.inferredFromDefault) {
|
|
843
|
+
(0, _requestmeta.addRequestMeta)(req, 'localeInferredFromDefault', true);
|
|
844
|
+
} else {
|
|
845
|
+
(0, _requestmeta.removeRequestMeta)(req, 'localeInferredFromDefault');
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
// Match the resulting concrete pathname again so route precedence
|
|
849
|
+
// is preserved while the concrete params remain available to PPR.
|
|
850
|
+
const finalRouteMatch = this.getRouteMatch(matchedPath, finalLocaleAnalysisResult);
|
|
851
|
+
if (finalRouteMatch) {
|
|
852
|
+
(0, _requestmeta.addRequestMeta)(req, 'match', finalRouteMatch);
|
|
853
|
+
} else {
|
|
854
|
+
(0, _requestmeta.removeRequestMeta)(req, 'match');
|
|
855
|
+
}
|
|
861
856
|
if (pageIsDynamic || didRewrite) {
|
|
862
857
|
var _utils_defaultRouteRegex;
|
|
863
858
|
utils.normalizeCdnUrl(req, [
|
|
@@ -879,7 +874,7 @@ class Server {
|
|
|
879
874
|
// handleRewrites to ensure catch-all routes get proper array values.
|
|
880
875
|
// App Router routes should not include rewrite query params as they
|
|
881
876
|
// affect RSC payload.
|
|
882
|
-
if ((
|
|
877
|
+
if ((routeDefinition == null ? void 0 : routeDefinition.kind) === _routekind.RouteKind.PAGES || (routeDefinition == null ? void 0 : routeDefinition.kind) === _routekind.RouteKind.PAGES_API) {
|
|
883
878
|
parsedUrl.query = rewrittenQueryParams;
|
|
884
879
|
}
|
|
885
880
|
finished = await this.normalizeAndAttachMetadata(req, res, parsedUrl);
|
|
@@ -1019,6 +1014,170 @@ class Server {
|
|
|
1019
1014
|
res.body('Internal Server Error').send();
|
|
1020
1015
|
}
|
|
1021
1016
|
}
|
|
1017
|
+
getPagesRouteDefinition(page, pathname, kind, locale) {
|
|
1018
|
+
var _this_pagesManifest;
|
|
1019
|
+
const filename = (_this_pagesManifest = this.pagesManifest) == null ? void 0 : _this_pagesManifest[page];
|
|
1020
|
+
if (!filename) return;
|
|
1021
|
+
return {
|
|
1022
|
+
kind,
|
|
1023
|
+
pathname,
|
|
1024
|
+
page,
|
|
1025
|
+
bundlePath: this.pagesNormalizers.bundlePath.normalize(page),
|
|
1026
|
+
filename: this.pagesNormalizers.filename.normalize(filename),
|
|
1027
|
+
...this.i18nProvider ? {
|
|
1028
|
+
i18n: {
|
|
1029
|
+
locale
|
|
1030
|
+
}
|
|
1031
|
+
} : {}
|
|
1032
|
+
};
|
|
1033
|
+
}
|
|
1034
|
+
getAppPageRouteDefinition(pathname) {
|
|
1035
|
+
var _this_appPathRoutes, _this_appPathsManifest;
|
|
1036
|
+
const appPaths = (_this_appPathRoutes = this.appPathRoutes) == null ? void 0 : _this_appPathRoutes[pathname];
|
|
1037
|
+
if (!appPaths) return;
|
|
1038
|
+
const page = (0, _apppaths.selectAppPageEntry)(pathname, appPaths);
|
|
1039
|
+
if (!(0, _isapppageroute.isAppPageRoute)(page)) return;
|
|
1040
|
+
const filename = (_this_appPathsManifest = this.appPathsManifest) == null ? void 0 : _this_appPathsManifest[page];
|
|
1041
|
+
if (!filename) return;
|
|
1042
|
+
return {
|
|
1043
|
+
kind: _routekind.RouteKind.APP_PAGE,
|
|
1044
|
+
pathname,
|
|
1045
|
+
page,
|
|
1046
|
+
bundlePath: this.appNormalizers.bundlePath.normalize(page),
|
|
1047
|
+
filename: this.appNormalizers.filename.normalize(filename),
|
|
1048
|
+
appPaths
|
|
1049
|
+
};
|
|
1050
|
+
}
|
|
1051
|
+
getAppRouteRouteDefinition(page) {
|
|
1052
|
+
var _this_appPathsManifest;
|
|
1053
|
+
const filename = (_this_appPathsManifest = this.appPathsManifest) == null ? void 0 : _this_appPathsManifest[page];
|
|
1054
|
+
if (!filename) return;
|
|
1055
|
+
const pathname = this.appNormalizers.pathname.normalize(page);
|
|
1056
|
+
return {
|
|
1057
|
+
kind: _routekind.RouteKind.APP_ROUTE,
|
|
1058
|
+
pathname,
|
|
1059
|
+
page,
|
|
1060
|
+
bundlePath: this.appNormalizers.bundlePath.normalize(page),
|
|
1061
|
+
filename: this.appNormalizers.filename.normalize(filename)
|
|
1062
|
+
};
|
|
1063
|
+
}
|
|
1064
|
+
getRouteDefinitions() {
|
|
1065
|
+
// Route definitions are rebuilt from the manifests instead of being held
|
|
1066
|
+
// by route matcher providers. This keeps direct BaseServer entrypoints
|
|
1067
|
+
// working when requests do not pass through router-server's fsChecker.
|
|
1068
|
+
const definitions = [];
|
|
1069
|
+
if (this.enabledDirectories.pages) {
|
|
1070
|
+
for (const page of Object.keys(this.pagesManifest || {})){
|
|
1071
|
+
var _this_i18nProvider;
|
|
1072
|
+
const localeResult = (_this_i18nProvider = this.i18nProvider) == null ? void 0 : _this_i18nProvider.analyze(page);
|
|
1073
|
+
const pathname = (localeResult == null ? void 0 : localeResult.pathname) ?? page;
|
|
1074
|
+
if ((0, _utils2.isBlockedPage)(pathname)) continue;
|
|
1075
|
+
const definition = this.getPagesRouteDefinition(page, pathname, (0, _isapiroute.isAPIRoute)(page) ? _routekind.RouteKind.PAGES_API : _routekind.RouteKind.PAGES, localeResult == null ? void 0 : localeResult.detectedLocale);
|
|
1076
|
+
if (definition) {
|
|
1077
|
+
definitions.push(definition);
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
if (this.enabledDirectories.app) {
|
|
1082
|
+
for (const pathname of Object.keys(this.appPathRoutes || {})){
|
|
1083
|
+
const definition = this.getAppPageRouteDefinition(pathname);
|
|
1084
|
+
if (definition) {
|
|
1085
|
+
definitions.push(definition);
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
for (const page of Object.keys(this.appPathsManifest || {})){
|
|
1089
|
+
if (!(0, _isapprouteroute.isAppRouteRoute)(page)) continue;
|
|
1090
|
+
const definition = this.getAppRouteRouteDefinition(page);
|
|
1091
|
+
if (definition) {
|
|
1092
|
+
definitions.push(definition);
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
return definitions;
|
|
1097
|
+
}
|
|
1098
|
+
getSortedRouteDefinitions(definitions) {
|
|
1099
|
+
const references = new Map();
|
|
1100
|
+
const pathnames = [];
|
|
1101
|
+
for (const definition of definitions){
|
|
1102
|
+
const existing = references.get(definition.pathname);
|
|
1103
|
+
if (existing) {
|
|
1104
|
+
existing.push(definition);
|
|
1105
|
+
} else {
|
|
1106
|
+
references.set(definition.pathname, [
|
|
1107
|
+
definition
|
|
1108
|
+
]);
|
|
1109
|
+
pathnames.push(definition.pathname);
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
return (0, _utils1.getSortedRoutes)(pathnames).flatMap((pathname)=>references.get(pathname));
|
|
1113
|
+
}
|
|
1114
|
+
getRouteMatchPathname(pathname, definition, localeAnalysisResult) {
|
|
1115
|
+
const localeDefinition = definition;
|
|
1116
|
+
if (localeDefinition.i18n && localeAnalysisResult) {
|
|
1117
|
+
if (localeDefinition.i18n.locale && localeAnalysisResult.detectedLocale && localeDefinition.i18n.locale !== localeAnalysisResult.detectedLocale) {
|
|
1118
|
+
return null;
|
|
1119
|
+
}
|
|
1120
|
+
return localeAnalysisResult.pathname;
|
|
1121
|
+
}
|
|
1122
|
+
if (localeAnalysisResult == null ? void 0 : localeAnalysisResult.inferredFromDefault) {
|
|
1123
|
+
return localeAnalysisResult.pathname;
|
|
1124
|
+
}
|
|
1125
|
+
return pathname;
|
|
1126
|
+
}
|
|
1127
|
+
testRouteDefinition(pathname, definition, localeAnalysisResult) {
|
|
1128
|
+
const matchPathname = this.getRouteMatchPathname(pathname, definition, localeAnalysisResult);
|
|
1129
|
+
if (!matchPathname) return null;
|
|
1130
|
+
if ((0, _utils1.isDynamicRoute)(definition.pathname)) {
|
|
1131
|
+
const params = (0, _routematcher.getRouteMatcher)((0, _routeregex.getRouteRegex)(definition.pathname))(matchPathname);
|
|
1132
|
+
if (!params) return null;
|
|
1133
|
+
return {
|
|
1134
|
+
definition,
|
|
1135
|
+
params
|
|
1136
|
+
};
|
|
1137
|
+
}
|
|
1138
|
+
if (matchPathname === definition.pathname) {
|
|
1139
|
+
return {
|
|
1140
|
+
definition,
|
|
1141
|
+
params: undefined
|
|
1142
|
+
};
|
|
1143
|
+
}
|
|
1144
|
+
return null;
|
|
1145
|
+
}
|
|
1146
|
+
getRoutePatternDefinition(pathname, localeAnalysisResult) {
|
|
1147
|
+
for (const definition of this.getRouteDefinitions()){
|
|
1148
|
+
const matchPathname = this.getRouteMatchPathname(pathname, definition, localeAnalysisResult);
|
|
1149
|
+
if (matchPathname === definition.pathname) {
|
|
1150
|
+
return definition;
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
getRouteMatch(pathname, localeAnalysisResult) {
|
|
1155
|
+
const definitions = this.getRouteDefinitions();
|
|
1156
|
+
const dynamicDefinitions = [];
|
|
1157
|
+
// Check exact routes first, then sort dynamic routes by specificity. The
|
|
1158
|
+
// old matcher manager provided the same precedence before it was removed.
|
|
1159
|
+
if (!(0, _utils1.isDynamicRoute)(pathname)) {
|
|
1160
|
+
for (const definition of definitions){
|
|
1161
|
+
if ((0, _utils1.isDynamicRoute)(definition.pathname)) {
|
|
1162
|
+
dynamicDefinitions.push(definition);
|
|
1163
|
+
continue;
|
|
1164
|
+
}
|
|
1165
|
+
const match = this.testRouteDefinition(pathname, definition, localeAnalysisResult);
|
|
1166
|
+
if (match) return match;
|
|
1167
|
+
}
|
|
1168
|
+
} else {
|
|
1169
|
+
for (const definition of definitions){
|
|
1170
|
+
if ((0, _utils1.isDynamicRoute)(definition.pathname)) {
|
|
1171
|
+
dynamicDefinitions.push(definition);
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
for (const definition of this.getSortedRouteDefinitions(dynamicDefinitions)){
|
|
1176
|
+
const match = this.testRouteDefinition(pathname, definition, localeAnalysisResult);
|
|
1177
|
+
if (match) return match;
|
|
1178
|
+
}
|
|
1179
|
+
return null;
|
|
1180
|
+
}
|
|
1022
1181
|
/**
|
|
1023
1182
|
* @internal - this method is internal to Next.js and should not be used directly by end-users
|
|
1024
1183
|
*/ getRequestHandlerWithMetadata(meta) {
|
|
@@ -1032,7 +1191,10 @@ class Server {
|
|
|
1032
1191
|
return this.handleRequest.bind(this);
|
|
1033
1192
|
}
|
|
1034
1193
|
setAssetPrefix(prefix) {
|
|
1035
|
-
this.
|
|
1194
|
+
this.renderOpts.assetPrefix = prefix ? prefix.replace(/\/$/, '') : '';
|
|
1195
|
+
}
|
|
1196
|
+
getAssetPrefix() {
|
|
1197
|
+
return this.renderOpts.assetPrefix || '';
|
|
1036
1198
|
}
|
|
1037
1199
|
/**
|
|
1038
1200
|
* Runs async initialization of server.
|
|
@@ -1063,6 +1225,8 @@ class Server {
|
|
|
1063
1225
|
}
|
|
1064
1226
|
appPathRoutes[normalizedPath].push(entry);
|
|
1065
1227
|
});
|
|
1228
|
+
// Preserve manifest order: legacy deployment builders package the final
|
|
1229
|
+
// direct entry for a pathname as the function's loadable page module.
|
|
1066
1230
|
return appPathRoutes;
|
|
1067
1231
|
}
|
|
1068
1232
|
async run(req, res, parsedUrl) {
|
|
@@ -1095,16 +1259,14 @@ class Server {
|
|
|
1095
1259
|
let { cacheControl } = payload;
|
|
1096
1260
|
if (!res.sent) {
|
|
1097
1261
|
const { generateEtags, poweredByHeader } = this.renderOpts;
|
|
1098
|
-
//
|
|
1099
|
-
//
|
|
1100
|
-
//
|
|
1101
|
-
//
|
|
1102
|
-
//
|
|
1103
|
-
//
|
|
1104
|
-
// refresh on a second connection as a duplicate request. `no-store` keeps
|
|
1105
|
-
// that entry from being created.
|
|
1262
|
+
// Documents and data responses must not be stored in development.
|
|
1263
|
+
// Browsers reuse a stored response for a history navigation without
|
|
1264
|
+
// revalidating it, so a back navigation would restore a page from before
|
|
1265
|
+
// the latest edit. Static assets never reach this code. They keep a
|
|
1266
|
+
// revalidatable `Cache-Control`, so the browser caches them between page
|
|
1267
|
+
// loads.
|
|
1106
1268
|
if (this.dev) {
|
|
1107
|
-
res.setHeader('Cache-Control',
|
|
1269
|
+
res.setHeader('Cache-Control', 'no-store');
|
|
1108
1270
|
cacheControl = undefined;
|
|
1109
1271
|
}
|
|
1110
1272
|
if (cacheControl && cacheControl.expire === undefined) {
|
|
@@ -1441,35 +1603,67 @@ class Server {
|
|
|
1441
1603
|
(0, _requestmeta.addRequestMeta)(req, 'devGenerateStaticParamsDuration', process.hrtime.bigint() - getStaticPathsStart);
|
|
1442
1604
|
}
|
|
1443
1605
|
if (isAppPath && this.nextConfig.cacheComponents) {
|
|
1444
|
-
var _pathsResults_prerenderedRoutes;
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
//
|
|
1448
|
-
//
|
|
1449
|
-
//
|
|
1450
|
-
//
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
//
|
|
1456
|
-
//
|
|
1457
|
-
|
|
1458
|
-
//
|
|
1459
|
-
//
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
if (!(0, _routeregex.getRouteRegex)(route.pathname).re.test(urlPathname)) {
|
|
1606
|
+
var _pathsResults_prerenderedRoutes, _pathsResults_prerenderRouteMatchers;
|
|
1607
|
+
const paramMatching = pathsResults.paramMatching;
|
|
1608
|
+
if (paramMatching !== undefined) {
|
|
1609
|
+
// Explicit fallback and blocking policies describe how production
|
|
1610
|
+
// prerenders are selected. Normal dev requests still render
|
|
1611
|
+
// dynamically; only an explicit not-found match changes their
|
|
1612
|
+
// foreground behavior.
|
|
1613
|
+
(0, _requestmeta.addRequestMeta)(req, 'devParamMatchingRejected', false);
|
|
1614
|
+
(0, _requestmeta.addRequestMeta)(req, 'devNotFoundParams', Object.keys(paramMatching).filter((name)=>paramMatching[name] === 'not-found'));
|
|
1615
|
+
}
|
|
1616
|
+
if (((_pathsResults_prerenderedRoutes = pathsResults.prerenderedRoutes) == null ? void 0 : _pathsResults_prerenderedRoutes.length) || ((_pathsResults_prerenderRouteMatchers = pathsResults.prerenderRouteMatchers) == null ? void 0 : _pathsResults_prerenderRouteMatchers.length)) {
|
|
1617
|
+
// Build-time pathnames are decoded. Match the decoded rewrite
|
|
1618
|
+
// destination, not the original encoded URL, just as in production.
|
|
1619
|
+
const decodedPathname = (0, _decodepathparams.decodePathParams)(resolvedUrlPathname);
|
|
1620
|
+
// Match both build-time prerenders and routes that have no
|
|
1621
|
+
// build-time output, such as an explicit blocking match.
|
|
1622
|
+
let matchedRoute;
|
|
1623
|
+
for (const route of pathsResults.prerenderedRoutes ?? []){
|
|
1624
|
+
var _route_fallbackRouteParams, _matchedRoute_fallbackRouteParams;
|
|
1625
|
+
if (!(0, _routeregex.getRouteRegex)(route.pathname).re.test(decodedPathname)) {
|
|
1465
1626
|
continue;
|
|
1466
1627
|
}
|
|
1467
|
-
if (
|
|
1468
|
-
|
|
1628
|
+
if (matchedRoute === undefined || (((_route_fallbackRouteParams = route.fallbackRouteParams) == null ? void 0 : _route_fallbackRouteParams.length) ?? 0) < (((_matchedRoute_fallbackRouteParams = matchedRoute.fallbackRouteParams) == null ? void 0 : _matchedRoute_fallbackRouteParams.length) ?? 0)) {
|
|
1629
|
+
matchedRoute = route;
|
|
1469
1630
|
}
|
|
1470
1631
|
}
|
|
1471
|
-
|
|
1472
|
-
|
|
1632
|
+
for (const route of pathsResults.prerenderRouteMatchers ?? []){
|
|
1633
|
+
var _matchedRoute_fallbackRouteParams1;
|
|
1634
|
+
if (!(0, _routeregex.getRouteRegex)(route.pathname).re.test(decodedPathname)) {
|
|
1635
|
+
continue;
|
|
1636
|
+
}
|
|
1637
|
+
if (matchedRoute === undefined || route.fallbackRouteParams.length < (((_matchedRoute_fallbackRouteParams1 = matchedRoute.fallbackRouteParams) == null ? void 0 : _matchedRoute_fallbackRouteParams1.length) ?? 0)) {
|
|
1638
|
+
matchedRoute = route;
|
|
1639
|
+
}
|
|
1640
|
+
}
|
|
1641
|
+
if (paramMatching !== undefined && (matchedRoute == null ? void 0 : matchedRoute.fallbackMode) === _fallback.FallbackMode.NOT_FOUND) {
|
|
1642
|
+
(0, _requestmeta.addRequestMeta)(req, 'devParamMatchingRejected', true);
|
|
1643
|
+
}
|
|
1644
|
+
if (matchedRoute) {
|
|
1645
|
+
// Shell requests keep the matched route's fallback params unknown.
|
|
1646
|
+
// Ordinary requests use stagedFallbackParams below to determine
|
|
1647
|
+
// which params resolve in the static phase.
|
|
1648
|
+
(0, _requestmeta.addRequestMeta)(req, 'fallbackRouteParams', matchedRoute.fallbackRouteParams ? (0, _fallbackparams.createOpaqueFallbackRouteParams)(matchedRoute.fallbackRouteParams) : null);
|
|
1649
|
+
let stagedFallbackParams = (0, _fallbackparams.getStagedFallbackParams)({
|
|
1650
|
+
...matchedRoute,
|
|
1651
|
+
// A match without a build-time prerender has no shell validation
|
|
1652
|
+
// metadata. With false, getStagedFallbackParams lets remaining
|
|
1653
|
+
// prerenderable params resolve in the static phase; params that
|
|
1654
|
+
// cannot be prerendered still wait for the dynamic phase.
|
|
1655
|
+
throwOnEmptyStaticShell: 'throwOnEmptyStaticShell' in matchedRoute ? matchedRoute.throwOnEmptyStaticShell : false
|
|
1656
|
+
});
|
|
1657
|
+
if (pathsResults.explicitFallbackRouteParams) {
|
|
1658
|
+
// An explicit fallback must work even when its params are
|
|
1659
|
+
// unknown. Preserve that boundary for fully generated URLs too,
|
|
1660
|
+
// without losing holes in a required partial source shell.
|
|
1661
|
+
stagedFallbackParams = new Map([
|
|
1662
|
+
...stagedFallbackParams ?? [],
|
|
1663
|
+
...(0, _fallbackparams.createOpaqueFallbackRouteParams)(pathsResults.explicitFallbackRouteParams) ?? []
|
|
1664
|
+
]);
|
|
1665
|
+
}
|
|
1666
|
+
(0, _requestmeta.addRequestMeta)(req, 'stagedFallbackParams', stagedFallbackParams);
|
|
1473
1667
|
}
|
|
1474
1668
|
}
|
|
1475
1669
|
}
|
|
@@ -1565,11 +1759,17 @@ class Server {
|
|
|
1565
1759
|
async renderPageComponent(ctx, bubbleNoFallback) {
|
|
1566
1760
|
var _this_nextConfig_experimental_sri;
|
|
1567
1761
|
const { query, pathname } = ctx;
|
|
1568
|
-
const
|
|
1762
|
+
const match = (0, _requestmeta.getRequestMeta)(ctx.req, 'match');
|
|
1763
|
+
const appPaths = this.getOriginalAppPaths(pathname) ?? (match && (0, _apppageroutedefinition.isAppPageRouteDefinition)(match.definition) ? match.definition.appPaths : null);
|
|
1569
1764
|
const isAppPath = Array.isArray(appPaths);
|
|
1570
1765
|
let page = pathname;
|
|
1571
1766
|
if (isAppPath) {
|
|
1767
|
+
// Load the same direct entry selected by the build and deployment
|
|
1768
|
+
// adapter. Expanded catch-all contributors are part of the route tree,
|
|
1769
|
+
// but their modules are not necessarily traced into this function.
|
|
1572
1770
|
page = (0, _apppaths.selectAppPageEntry)(pathname, appPaths);
|
|
1771
|
+
} else if ((match == null ? void 0 : match.definition.kind) === _routekind.RouteKind.APP_ROUTE) {
|
|
1772
|
+
page = match.definition.page;
|
|
1573
1773
|
}
|
|
1574
1774
|
const result = await this.findPageComponents({
|
|
1575
1775
|
locale: (0, _requestmeta.getRequestMeta)(ctx.req, 'locale'),
|
|
@@ -1579,8 +1779,10 @@ class Server {
|
|
|
1579
1779
|
isAppPath,
|
|
1580
1780
|
sriEnabled: !!((_this_nextConfig_experimental_sri = this.nextConfig.experimental.sri) == null ? void 0 : _this_nextConfig_experimental_sri.algorithm),
|
|
1581
1781
|
appPaths,
|
|
1582
|
-
//
|
|
1583
|
-
|
|
1782
|
+
// Normal routed requests are ensured by the route match. Legacy custom
|
|
1783
|
+
// server render methods bypass that path, so ensure when no match exists.
|
|
1784
|
+
shouldEnsure: !match,
|
|
1785
|
+
url: pathname
|
|
1584
1786
|
});
|
|
1585
1787
|
if (result) {
|
|
1586
1788
|
(0, _tracer.getTracer)().setRootSpanAttribute('next.route', pathname);
|
|
@@ -1606,7 +1808,6 @@ class Server {
|
|
|
1606
1808
|
});
|
|
1607
1809
|
}
|
|
1608
1810
|
async renderToResponseImpl(ctx) {
|
|
1609
|
-
var _this_i18nProvider;
|
|
1610
1811
|
const { req, res, query, pathname } = ctx;
|
|
1611
1812
|
let page = pathname;
|
|
1612
1813
|
const bubbleNoFallback = (0, _requestmeta.getRequestMeta)(ctx.req, 'bubbleNoFallback') ?? false;
|
|
@@ -1614,35 +1815,33 @@ class Server {
|
|
|
1614
1815
|
(0, _requestmeta.addRequestMeta)(ctx.req, 'cacheBustingSearchParam', query[_approuterheaders.NEXT_RSC_UNION_QUERY]);
|
|
1615
1816
|
}
|
|
1616
1817
|
delete query[_approuterheaders.NEXT_RSC_UNION_QUERY];
|
|
1617
|
-
|
|
1618
|
-
i18n: (_this_i18nProvider = this.i18nProvider) == null ? void 0 : _this_i18nProvider.fromRequest(req, pathname)
|
|
1619
|
-
};
|
|
1620
|
-
const existingMatch = (0, _requestmeta.getRequestMeta)(ctx.req, 'match');
|
|
1621
|
-
let fastPath = true;
|
|
1622
|
-
// when a specific invoke-output is meant to be matched
|
|
1623
|
-
// ensure a prior dynamic route/page doesn't take priority
|
|
1818
|
+
let existingMatch = (0, _requestmeta.getRequestMeta)(ctx.req, 'match');
|
|
1624
1819
|
const invokeOutput = (0, _requestmeta.getRequestMeta)(ctx.req, 'invokeOutput');
|
|
1625
|
-
if (!this.minimalMode && typeof invokeOutput === 'string' && (0, _utils1.isDynamicRoute)(invokeOutput || '') && invokeOutput !== (existingMatch == null ? void 0 : existingMatch.definition.pathname) || (// Parallel routes are matched in `existingMatch` but since currently
|
|
1626
|
-
// there can be multiple matches it's not guaranteed to be the right match
|
|
1627
|
-
// therefor we need to opt-out of the fast path for parallel routes.
|
|
1628
|
-
existingMatch == null ? void 0 : existingMatch.definition.page.includes('/@'))) {
|
|
1629
|
-
fastPath = false;
|
|
1630
|
-
}
|
|
1631
1820
|
try {
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1821
|
+
if (!existingMatch) {
|
|
1822
|
+
var _this_i18nProvider;
|
|
1823
|
+
const localeAnalysisResult = (_this_i18nProvider = this.i18nProvider) == null ? void 0 : _this_i18nProvider.fromRequest(req, pathname);
|
|
1824
|
+
const routeMatch = this.getRouteMatch(pathname, localeAnalysisResult);
|
|
1825
|
+
if (routeMatch) {
|
|
1826
|
+
existingMatch = routeMatch;
|
|
1827
|
+
(0, _requestmeta.addRequestMeta)(req, 'match', routeMatch);
|
|
1637
1828
|
}
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1829
|
+
}
|
|
1830
|
+
if (existingMatch) {
|
|
1831
|
+
const shouldSkipMatch = !this.minimalMode && typeof invokeOutput === 'string' && (0, _utils1.isDynamicRoute)(invokeOutput || '') && invokeOutput !== existingMatch.definition.pathname;
|
|
1832
|
+
if (!shouldSkipMatch) {
|
|
1833
|
+
const result = await this.renderPageComponent({
|
|
1834
|
+
...ctx,
|
|
1835
|
+
pathname: existingMatch.definition.pathname,
|
|
1836
|
+
renderOpts: {
|
|
1837
|
+
...ctx.renderOpts,
|
|
1838
|
+
params: existingMatch.params
|
|
1839
|
+
}
|
|
1840
|
+
}, bubbleNoFallback);
|
|
1841
|
+
if (result !== false) return result;
|
|
1842
|
+
}
|
|
1843
|
+
} else {
|
|
1844
|
+
const result = await this.renderPageComponent(ctx, bubbleNoFallback);
|
|
1646
1845
|
if (result !== false) return result;
|
|
1647
1846
|
}
|
|
1648
1847
|
// currently edge functions aren't receiving the x-matched-path
|
|
@@ -1862,11 +2061,7 @@ class Server {
|
|
|
1862
2061
|
</script>`, _constants2.HTML_CONTENT_TYPE_HEADER)
|
|
1863
2062
|
};
|
|
1864
2063
|
}
|
|
1865
|
-
throw new WrappedBuildError(
|
|
1866
|
-
value: "E60",
|
|
1867
|
-
enumerable: false,
|
|
1868
|
-
configurable: true
|
|
1869
|
-
}));
|
|
2064
|
+
throw new WrappedBuildError(new Error('missing required error components'));
|
|
1870
2065
|
}
|
|
1871
2066
|
// If the page has a route module, use it for the new match. If it doesn't
|
|
1872
2067
|
// have a route module, remove the match.
|
|
@@ -1889,11 +2084,7 @@ class Server {
|
|
|
1889
2084
|
}, result);
|
|
1890
2085
|
} catch (maybeFallbackError) {
|
|
1891
2086
|
if (maybeFallbackError instanceof _nofallbackerrorexternal.NoFallbackError) {
|
|
1892
|
-
throw
|
|
1893
|
-
value: "E55",
|
|
1894
|
-
enumerable: false,
|
|
1895
|
-
configurable: true
|
|
1896
|
-
});
|
|
2087
|
+
throw new Error('invariant: failed to render error page');
|
|
1897
2088
|
}
|
|
1898
2089
|
throw maybeFallbackError;
|
|
1899
2090
|
}
|