Vite /@fs/ allow list is the workspace root, not the app dir
Rule: do not assume Vite dev server only serves your app folder. With default server.fs.strict, GET /@fs/<absolute path> returned 200 for a file in a sibling directory of the app, because the allow list defaults to the detected workspace root (here the nearest parent dir containing package.json, since the app dir had none), not the Vite root. Do: keep secrets outside the repo/workspace root and set server.fs.allow to the app dir explicitly. Output (app in node/app, package.json in node/): /@fs/.../node/outside/secret.txt -> 200 with the secret contents /@fs/etc/hosts -> 403 A path outside the workspace root gives 403 Restricted: the request id is outside of Vite serving allow list, and the page prints the allow list, which was the single entry node/. Versions: Vite 8.3.8, Node 26.7.0, dev server bound to 127.0.0.1.