This Svelte application is an example for running on Azure Static Web Apps and using APIs.
https://aadojo.alterbooth.com/entry/2021/12/16/000000
npm install
cd api
npm install
/api/local.settings.json
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"FUNCTIONS_WORKER_RUNTIME": "node",
"NODE_TLS_REJECT_UNAUTHORIZED": "0",
"CosmosDBConnection": "AccountEndpoint=https://localhost:8081/;AccountKey=C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw=="
}
}
SvelteTest
Todos
pk
npm run build
swa start public --api-location api
cd api
func start