Closed DariuszOstolski closed 10 months ago
The problem appears to be caused by the asset configuration, specifically:
{ "input": "../api", "glob": "**/*", "output": "./api" }
This configuration is referencing files outside of the workspace root which the Vite-based dev server currently does not allow. However, it should be possible for us to adjust the Vite server to ensure that all configured assets are allowed during server initialization.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
Command
serve
Is this a regression?
The previous version in which this bug was not present was
16
Description
I've just migrated to Angular v17 and vite+esbuild my Angular application.
I have following configuration for application assets:
With previous version of angular(webpack) I could start dev server and under /api I've got resources from ../api folder. With vite+esbuild I have following errors on console:
➜ Local: http://localhost:35093/ The request url "/home/darostol/projects/memc-rs-web/api/docs/index.md" is outside of Vite serving allow list.
The file path is correct:
It just seems that vite configuration doesn't allow it to be served.
Minimal Reproduction
npm run-script start
Exception or Error
Your Environment
Anything else relevant?
No response