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

Change docs/ to use nextjs app router #9220

Merged
merged 4 commits into from
Jul 23, 2024

Conversation

simonswiss
Copy link
Contributor

@simonswiss simonswiss commented Jul 18, 2024

This PR moves the entire keystonejs.com website to the Next.js app router.

It's a pretty big PR with a lot of moving parts — but it's going to make the integration of Keystatic (particularly data fetching at the leaf components rather than passed down from pages) much nicer.

Things the PR covers:

  • make emotion work with the app router (all the changes to the JSX pragma are related to this)
  • support for new metadata SEO tags, replacing the Og component

It will need a thorough review by someone who is very familiar with the website. I checked out all the pages, the SEO metadata is working, the theme switcher is working — most things look good to me, but someone with more affinity with the site should have a good look around :)

@dcousens dcousens changed the title Pages to App router migration Keystone Docs: pages to app router migration Jul 18, 2024
@dcousens dcousens changed the title Keystone Docs: pages to app router migration docs/ pages to app router migration Jul 18, 2024
@dcousens dcousens changed the title docs/ pages to app router migration Change docs/ to use nextjs app router Jul 18, 2024
@simonswiss simonswiss force-pushed the pages-to-app-router branch 2 times, most recently from 6ea9c20 to ba2d7cd Compare July 19, 2024 07:33
@simonswiss simonswiss force-pushed the pages-to-app-router branch from ba2d7cd to 218f97a Compare July 19, 2024 07:34
Copy link

codesandbox-ci bot commented Jul 19, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 64a381d:

Sandbox Source
@keystone-6/sandbox Configuration

@simonswiss simonswiss marked this pull request as ready for review July 19, 2024 07:38
@dcousens dcousens merged commit d46c311 into keystonejs:main Jul 23, 2024
1 check was pending
@gotodeploy
Copy link

Maybe this PR causes 404 error on docs?

https://keystonejs.com/docs/guides/cli

@simonswiss
Copy link
Contributor Author

Whoops yes — I fixed the poorly ported over generateStaticParams functions on both the blog and docs dynamic routes in #9227

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants