When generating an application with cypress e2e the command nx run app-e2e:e2e fails with
Failed to load url /src/main.ts (resolved id: /home/workspace/app/src/main.ts). Does the file exist?
The request url "/home/workspace/app/src/main.ts" is outside of Vite serving allow list.
When I add
fs: {
allow: [process.cwd()],
},
in the file vite.config.ts in the config under the key server, then the tests are working.
When generating an application with cypress e2e the command
nx run app-e2e:e2e
fails withWhen I add
in the file
vite.config.ts
in the config under the key server, then the tests are working.