next.js + vitest apps don't run on static web apps
- Dominant language
- No language data
- Stars
- 346
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
I have build a **next.js** app and was able to successfully build and deploy the app using Azure Static Web Apps.
At the moment that I integrate tests based on **vitest**, the deployed app failed with a "502 - Server Error" message.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to https://mango-dune-0715c5103.4.azurestaticapps.net/
1. See the version without vitest working
1. Go to https://lively-flower-0ce3d6d03.4.azurestaticapps.net/
1. See the version with vitest failing
The reference elements:
- The source repository: https://github.com/superfaz/test-swa
- `mango-dune` is built based on the `main` branh
- `lively-flower` is built based on the `vitest` branch
**Expected behavior**
Adding unit tests based on vitest should have no impact on the output.
**Screenshots**

**Additional information**
I was not able to reproduce this issue while launching the app locally or via a docker deployment.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.