Skip to content
Discussion options

You must be logged in to vote

Hi @aheissenberger!

You should be able to use TypeScript like above to define runtime when #239 is published as soon as checks are finished.

This feature was not fully finished and is only mentioned once in the docs, in a somewhat hidden manner. The necessary functions were not available from a public export, and they were also not documented. The runtime context is an internal async local storage that can be extended through configuration, but I have not seen any use case for it so far.

You should define the runtime in the react-server.runtime.configt.ts file to use the custom remote context entries in production too. Only this runtime configuration file will be part of a production buil…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@aheissenberger
Comment options

Answer selected by aheissenberger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants