Closed foysalit closed 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.
Your Render PR Server URL is https://ozone-sandbox-pr-139.onrender.com.
Follow its progress at https://dashboard.render.com/web/srv-cpum3488fa8c73c8fc7g.
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.