-
-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Closed
Labels
contribution welcomep2-nice-to-haveNot breaking anything but nice to have (priority)Not breaking anything but nice to have (priority)
Description
Describe the bug
If I enter a file into the allow list, the logs show the Vite serving allow list properly, but Vite still reports the file "is outside of Vite serving allow list"
Reproduction
server: {
fs: {
allow: ['./$houdini', './houdini.config.js'],
},
},
Start server and I see this:
The request url "/home/node/app/houdini.config.js" is outside of Vite serving allow list.
- /home/node/app/static
- /home/node/app/src/lib
- /home/node/app/src/routes
- /home/node/app/src
- /home/node/app/.svelte-kit
- /home/node/app/node_modules
- /home/node/app/$houdini
- /home/node/app/houdini.config.js
Refer to docs https://vitejs.dev/config/#server-fs-allow for configurations and more details.
As you'll see, /home/node/app/houdini.config.js
shows up in the allow list but Vite complains it's not in the allow list.
System Info
System:
OS: Linux 5.10 Debian GNU/Linux 11 (bullseye) 11 (bullseye)
CPU: (4) x64 Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz
Memory: 3.68 GB / 31.25 GB
Container: Yes
Shell: 5.1.4 - /bin/bash
Binaries:
Node: 17.1.0 - /usr/local/bin/node
Yarn: 3.1.0 - /usr/local/bin/yarn
npm: 8.1.2 - /usr/local/bin/npm
Used Package Manager
yarn
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
oleksandr-danylchenko
Metadata
Metadata
Assignees
Labels
contribution welcomep2-nice-to-haveNot breaking anything but nice to have (priority)Not breaking anything but nice to have (priority)