Emulate an unsigned-in state during pre-rendering to avoid the pre-rendering process failing.
The hosting environment name will be "Prerendering" during pre-rendering, so the "appsettings.Prerendering.json" will be loaded to the app, and that custom configuration will make the Azure Static Web App Auth library to fetch an authentication state from the "/sample-data/nobody.json", and that "nobody.js" will return information of an unsigned-in user.
Emulate an unsigned-in state during pre-rendering to avoid the pre-rendering process failing.
The hosting environment name will be "Prerendering" during pre-rendering, so the "appsettings.Prerendering.json" will be loaded to the app, and that custom configuration will make the Azure Static Web App Auth library to fetch an authentication state from the "/sample-data/nobody.json", and that "nobody.js" will return information of an unsigned-in user.