You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Azure SWA require an index.html file to be present. At the moment, this means your root index.svelte route needs to be prerendered.
We should also support a dynamic index route that is SSR'd at request time. Potential approach:
Detect if index.html was prerendered. If so, do nothing.
Otherwise, create an empty index.html to make the build succeed. Update the routing rules to redirect requests for / to the api/__render function instead. I suspect the routing update is needed so Azure doesn't serve the empty HTML file instead.
Azure SWA require an
index.html
file to be present. At the moment, this means your rootindex.svelte
route needs to be prerendered.We should also support a dynamic index route that is SSR'd at request time. Potential approach:
index.html
was prerendered. If so, do nothing.index.html
to make the build succeed. Update the routing rules to redirect requests for/
to theapi/__render
function instead. I suspect the routing update is needed so Azure doesn't serve the empty HTML file instead.See also: #2, #4
The text was updated successfully, but these errors were encountered: