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

SSR: Better ServerEntry types #10412

Merged
merged 6 commits into from
Apr 4, 2024
Merged

Conversation

Tobbe
Copy link
Member

@Tobbe Tobbe commented Apr 4, 2024

  • Add types to entryServerImport that include ServerEntry
  • Use specific type for meta in ServerEntry everywhere

This spills over into user apps when they have SSR enabled, making user apps more type safe.
It also makes it easier and safer to work with the code internally in the framework

Had SSR not been an experimental feature we should have included a codemod with this change to update the type in users' projects. But since it is experimental I'm skipping that.

@Tobbe Tobbe added this to the SSR milestone Apr 4, 2024
@Tobbe Tobbe added the release:fix This PR is a fix label Apr 4, 2024
@Tobbe Tobbe added the fixture-ok Override the test project fixture check label Apr 4, 2024
@Tobbe Tobbe merged commit d6e3268 into redwoodjs:main Apr 4, 2024
51 of 52 checks passed
@Tobbe Tobbe deleted the tobbe-ssr-server-entry-types branch April 4, 2024 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixture-ok Override the test project fixture check release:fix This PR is a fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants