Skip to content

Commit

Permalink
Remove server.fs.allow from Vite templates (#8972)
Browse files Browse the repository at this point in the history
  • Loading branch information
markdalgleish committed Mar 5, 2024
1 parent 775d773 commit 7424850
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 44 deletions.
11 changes: 0 additions & 11 deletions templates/spa/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,4 @@ export default defineConfig({
}),
tsconfigPaths(),
],
server: {
fs: {
// Restrict files that could be served by Vite's dev server. Accessing
// files outside this directory list that aren't imported from an allowed
// file will result in a 403. Both directories and files can be provided.
// If you're comfortable with Vite's dev server making any file within the
// project root available, you can remove this option. See more:
// https://vitejs.dev/config/server-options.html#server-fs-allow
allow: ["app"],
},
},
});
11 changes: 0 additions & 11 deletions templates/vite-cloudflare/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,4 @@ import tsconfigPaths from "vite-tsconfig-paths";

export default defineConfig({
plugins: [remixCloudflareDevProxy(), remix(), tsconfigPaths()],
server: {
fs: {
// Restrict files that could be served by Vite's dev server. Accessing
// files outside this directory list that aren't imported from an allowed
// file will result in a 403. Both directories and files can be provided.
// If you're comfortable with Vite's dev server making any file within the
// project root available, you can remove this option. See more:
// https://vitejs.dev/config/server-options.html#server-fs-allow
allow: ["app"],
},
},
});
11 changes: 0 additions & 11 deletions templates/vite-express/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,4 @@ import tsconfigPaths from "vite-tsconfig-paths";

export default defineConfig({
plugins: [remix(), tsconfigPaths()],
server: {
fs: {
// Restrict files that could be served by Vite's dev server. Accessing
// files outside this directory list that aren't imported from an allowed
// file will result in a 403. Both directories and files can be provided.
// If you're comfortable with Vite's dev server making any file within the
// project root available, you can remove this option. See more:
// https://vitejs.dev/config/server-options.html#server-fs-allow
allow: ["app"],
},
},
});
11 changes: 0 additions & 11 deletions templates/vite/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,4 @@ installGlobals();

export default defineConfig({
plugins: [remix(), tsconfigPaths()],
server: {
fs: {
// Restrict files that could be served by Vite's dev server. Accessing
// files outside this directory list that aren't imported from an allowed
// file will result in a 403. Both directories and files can be provided.
// If you're comfortable with Vite's dev server making any file within the
// project root available, you can remove this option. See more:
// https://vitejs.dev/config/server-options.html#server-fs-allow
allow: ["app"],
},
},
});

0 comments on commit 7424850

Please sign in to comment.