Skip to content
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

Hosting a Next + Keystatic project on Github pages. #1341

Open
Hamzah-Ahmad opened this issue Oct 23, 2024 · 1 comment
Open

Hosting a Next + Keystatic project on Github pages. #1341

Hamzah-Ahmad opened this issue Oct 23, 2024 · 1 comment

Comments

@Hamzah-Ahmad
Copy link

I have created a simple Next.js and Keystatic project that is working correctly on local. I would like to deploy the project on Github pages.
That involves updating the output mode to export in the next.config.js file. However, this step leads to the following error:

Error: Page "/keystatic/[[...params]]" is missing "generateStaticParams()" so it cannot be used with "output: export" config.

Are there any workarounds for this? I am only interested in accessing the admin UI locally, if that helps.

Thank you

@tordans
Copy link
Contributor

tordans commented Nov 21, 2024

I just documented the setup we use at #1361. That should help you understand why this does not work the way you expect it and how to set it up for you Next + Keystatic Site.

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

No branches or pull requests

2 participants