this post was submitted on 05 Nov 2023
1 points (100.0% liked)

Photon (moved to lemdro.id)

263 readers
1 users here now

We've moved to lemdro.id:

[email protected]

https://lemdro.id/c/Photon

founded 1 year ago
MODERATORS
 

Some selfhosters with PUBLIC_SSR_ENABLED set to true might want the instance url to be different for the server.

I'm assuming that SSR is Server Side Rendering but I'm not sure how that applies to me, a self-hoster. Do I want to turn this on?

Then how does the internal setting play into it?

Thanks :)

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 1 year ago

The server and the client render differently.

If SSR is enabled, the initial page load will be loaded by the server then sent to the client. Then, the client router will take over and load pages itself after that.

PUBLIC_INSTANCE_URL is the instance URL for photon to use. Sometimes, you might want the server to use something like localhost, so you can make the server have a different instance URL than the client.