Azure Static Web Apps demo.
Use the swa cli without installing local using npx.
Start the web application:
npx @azure/static-web-apps-cli start
Starting the web application and the api:
npx @azure/static-web-apps-cli start --api-location ./api
Prefer routing to a specific endpoint on failed auth? Add the following section to the config.
"responseOverrides": {
"401": {
"redirect": "/login",
"statusCode": 302
}
}