Skip to content

Tag Page Generation Patch #1096

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 20, 2025
Merged

Tag Page Generation Patch #1096

merged 1 commit into from
Jan 20, 2025

Conversation

Onissom
Copy link
Contributor

@Onissom Onissom commented Jan 16, 2025

Currently when the generation for tag pagination happens, if the site is built using GitHub Pages it gives the following error:
[Error: Page "/tags/[tag]/page/[page]" is missing "generateStaticParams()" so it cannot be used with "output: export" config.]
This only occurs if there isn't enough tags to generate a second page of any tag that already exists in the blog, such as if you only have one public blog page prepared.

My first workaround to this was to modify the tags of the only blog to repeat the placeholder tag 6 times, however when checking the code more the modifications made below worked, allowing GitHub Pages to be built even when there isn't enough tags for a second page and still having proper pagination when the second page does exist.

Copy link

vercel bot commented Jan 16, 2025

@Onissom is attempting to deploy a commit to the timlrx's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Jan 20, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tailwind-nextjs-starter-blog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 20, 2025 2:57pm

@timlrx
Copy link
Owner

timlrx commented Jan 20, 2025

Thanks for the fix.

@timlrx timlrx merged commit 9a20462 into timlrx:main Jan 20, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants