Hii Tooba Nawaz,
This may happen due to following reasons
- It looks like the environment variables you added to the Azure Portal aren't being injected into your frontend, which is why your static site still isn’t loading properly (even though the default domain is active).
- Azure Static Web Apps settings only affect the server-side / API environment.
for your reference cross check, the process: https://learn.microsoft.com/en-us/azure/static-web-apps/application-settings?source=recommendations
Client-side environment variables must be embedded at build time.
If Using Local Build / Upload Manually- Add variables into .env.production or .env.local files.
- If Using GitHub Actions / Azure CI (recommended)-Edit your workflow .yml to provide environment variables. 2.When you browse the web , the pages load slowly and sometimes time out.
This problem is often caused by application-level issues, such as: - Network requests taking a long time
- Application code or database queries being inefficient
- Application using high memory/CPU
- Application crashing due to an exception
for your reference cross check, the process: https://learn.microsoft.com/en-us/troubleshoot/developer/webapps/iis/site-behavior-performance/slow-page-response-hangs#data-collectionYou can mark it 'Accept Answer' and 'Upvote' if this helped you
Regards,
Vishvani