Fix store static export build for dynamic product routes #13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Issue #9 cutover verification is blocked:
pnpm --filter garage-store buildfails with Next.js 16.2.10 even thoughapps/store/app/products/[slug]/page.tsxexportsgenerateStaticParams().Observed error:
Goal
Make the store production build generate
apps/store/out/successfully from the monorepo.Acceptance criteria
pnpm --filter garage-store buildsucceeds.apps/store/out/index.htmland product static routes are generated.Relationship
Blocks cutover issue #9. Close this issue when the static build is verified from merged main.
Non-goals
Research result: Next.js 16.2.10 is current (
pnpm view next versionreturns 16.2.10); no upgrade is available or indicated.generateStaticParams()is present and works. The failure occurs only when the local catalog has zero published items: Next's static exporter rejects the dynamic route with the misleading missing-function message. After inserting one temporary published inventory item,pnpm --filter garage-store buildsucceeded and generated/products/local-test-oil; the temporary row was removed afterward.Conclusion: no code PR is justified. Production static export requires at least one published catalog item, or the store route architecture must be changed intentionally. This issue should be handled as a cutover/data prerequisite rather than a Next upgrade.