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

feat: allow optionally controlled root #952

Merged
merged 14 commits into from
Oct 8, 2024
Merged

Conversation

tylersayshi
Copy link
Contributor

@tylersayshi tylersayshi commented Oct 6, 2024

Adds support for createRoot in createPages api and _root.tsx in fs-router mode for controlling the top level html and head tags

this will allow for controlling the top level tags, while still keeping a static default of the following:

    <html>
      <head></head>
      <body>{children}</body>
    </html>

Copy link

vercel bot commented Oct 6, 2024

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

Name Status Preview Updated (UTC)
waku ✅ Ready (Inspect) Visit Preview Oct 7, 2024 1:08pm

Copy link

codesandbox-ci bot commented Oct 6, 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.

@tylersayshi tylersayshi marked this pull request as ready for review October 6, 2024 06:15
@tylersayshi
Copy link
Contributor Author

@dai-shi do you know why pnpm install is failing on the CI checks? I can't see anything I might've changed... or maybe I'm misreading the logs, honestly unsure

Copy link
Owner

@dai-shi dai-shi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1st review

Copy link
Owner

@dai-shi dai-shi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Merging this, but could you add a PR description? It would be nice if it's detailed.


export const getConfig = async () => {
return {
render: 'static',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the default, right?

I wonder if we need _root.tsx for partial-build fixture. Is there any reason you created this file?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I created this just so that we had a test case that used the _root.tsx file.

If the presence of _root.tsx broke the build for any reason, having this here should catch that.

I'll update the description tho!

@dai-shi dai-shi merged commit 087d654 into dai-shi:main Oct 8, 2024
24 checks passed
yokos2 added a commit to yokos2/react-yoko-portfolio that referenced this pull request Feb 8, 2025
HondaKazuhiro added a commit to HondaKazuhiro/waku that referenced this pull request Feb 12, 2025
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