analogjs / analog

The fullstack meta-framework for Angular. Powered by Vite and Nitro
https://analogjs.org
MIT License
2.5k stars 240 forks source link

[FEAT] Add default Analog SERVER_CONTEXT for SSR/SSG/any #194

Closed Yberion closed 1 year ago

Yberion commented 1 year ago

Which scope/s are relevant/related to the feature request?

Don't known / other

Information

Hello,

It would be nice if there would be a default SERVER_CONTEXT set by Analog (same as Angular Universal) when using SSR/SSG or any other server side stuff.

Describe any alternatives/workarounds you're currently using

Actually what you pointed me out in our Discord discussion: https://github.com/analogjs/analog/blob/main/apps/analog-app/src/main.server.ts#L23

I would be willing to submit a PR to fix this issue

brandonroberts commented 1 year ago

Closing in favor of #327