Getting appsettings.json into TypeScript SSR - React. #290

Closed
opened 2025-08-09 17:15:43 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @orionstudt on 12/5/2017

Steve,

I saw what you suggested for #1314 and I have used that aspnet-prerender-data to get my data into the boot-server & boot-client files. I can get this to work client side - for instance my config is needed to access a certain API so when one of my components gets mounted client side it has no issues accessing my data with something like (window as any).data.. but with no window on server side, do you think you can point me in the right direction on how I should go about getting that config into that component?

Thanks.

*Originally created by @orionstudt on 12/5/2017* Steve, I saw what you suggested for #1314 and I have used that `aspnet-prerender-data` to get my data into the `boot-server` & `boot-client` files. I can get this to work client side - for instance my config is needed to access a certain API so when one of my components gets mounted client side it has no issues accessing my data with something like `(window as any).data`.. but with no `window` on server side, do you think you can point me in the right direction on how I should go about getting that config into that component? Thanks.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#290
No description provided.