SvelteKit SSR-support AAD authentication staticwebapp.config.json #1078
Unanswered
martialboissonneault
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello. I created a Static Web App on Azure using Sveltekit but it seems that SSR is not working when I add AAD authentication with staticwebapp.config.json. Here is an example:
+page.server.js
+page.svelte
If I use +page.js rather than +page.server.js it works perfectly. The AAD auth works also using +page.js and I can see my auth infos at /.auth/me
The page with +page.server.js is not working and redirect me to my home page.
staticwebapp.config.json
Thanks in advance for your help.
Beta Was this translation helpful? Give feedback.
All reactions