bluesky-social / ozone

web interface for labeling content in atproto / Bluesky
https://atproto.com
Other
250 stars 20 forks source link

:bug: Fix permission fetching #139

Closed foysalit closed 3 months ago

foysalit commented 3 months ago

Since next.js generates static pages on build, attempting to access client.session in any of the paths that may get rendered in the static build triggers an auth error. So, this PR refactors the permission checks into a helper function that handles said error.

render[bot] commented 3 months ago

Your Render PR Server URL is https://ozone-staging-pr-139.onrender.com.

Follow its progress at https://dashboard.render.com/web/srv-cpum33g8fa8c73c8fc1g.

render[bot] commented 3 months ago

Your Render PR Server URL is https://ozone-sandbox-pr-139.onrender.com.

Follow its progress at https://dashboard.render.com/web/srv-cpum3488fa8c73c8fc7g.