drma-tech / SD

Manage your streams, what you've watched, are watching and want to watch. All in one place.
https://www.streamingdiscovery.com/
Mozilla Public License 2.0
0 stars 2 forks source link

Fix: the static prerendering failed on .NET 7 #2

Closed jsakamoto closed 2 years ago

jsakamoto commented 2 years ago

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.