New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The request url "/api/cv" is outside of vite dev server root #3364
Comments
Getting same errors all over the place with SSR... need the ability to turn this off, not sure why its necessary in dev. |
fsServe.root would help for example
|
I am pretty sure that I tried that without success. I will evaluete that again. |
In vite 2.3.1 that check is disabled by default: https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md#231-2021-05-12 |
@dominikg, I got this point, but all files are within the projects src folder. And one file (endpoint) works and the other is not. Seems little bit strange. |
Describe the bug
Calling endpoints within a svelte-kit project that has no file extension seems to fail.
This worked before upgrading to 2.3.0.
I am not 100% sure if this problem might be a svelte specific problem.
Reproduction
https://github.com/BetaConnector/vite_error/
The Problem seems to be calling an endpoint with file extension / without file extension:
https://github.com/BetaConnector/vite_error/blob/master/src/routes/index.svelte
System Info
Output of
npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers
:Used package manager: npm
Logs
Before submitting the issue, please make sure you do the following
The text was updated successfully, but these errors were encountered: