Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): the request url "..." is outside …
Browse files Browse the repository at this point in the history
…of Vite serving allow list for all assets

Vite's fs.allow was being populated incorrectly.

Closes #26624
  • Loading branch information
alan-agius4 committed Dec 11, 2023
1 parent 2909daf commit 4e1f0e4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export async function* serveWithVite(
if (server) {
// Update fs allow list to include any new assets from the build option.
server.config.server.fs.allow = [
...new Set(...server.config.server.fs.allow, ...assetFiles.values()),
...new Set([...server.config.server.fs.allow, ...assetFiles.values()]),
];

handleUpdate(normalizePath, generatedFiles, server, serverOptions, context.logger);
Expand Down

0 comments on commit 4e1f0e4

Please sign in to comment.