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

Send startup data from custom server to handler #13115

Closed
sujai1009 opened this issue Dec 6, 2024 · 1 comment
Closed

Send startup data from custom server to handler #13115

sujai1009 opened this issue Dec 6, 2024 · 1 comment

Comments

@sujai1009
Copy link

Describe the problem

I want to connect to keyserver to fetch keys for the application. If not, then server should not start. Once success i need to save to session/state of svelte. So i tried using custom server node adapter to fetch the keys, now my problem is add it to request header in hooks.server.ts, which i cannot. So how to transmit data inbetween custom server(server.js) and sveltekit(with hooks or store)

Describe the proposed solution

Provide a method in "handler" for custom server and what data passed should be accessible in hooks/server.ts file as env variable.

Alternatives considered

No response

Importance

nice to have

Additional Information

No response

@eltigerchino
Copy link
Member

closing as duplicate of #6183

@eltigerchino eltigerchino closed this as not planned Won't fix, can't repro, duplicate, stale Dec 10, 2024
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