Skip to content

Commit

Permalink
prevent injecting non js files in app renderer (vercel/turborepo#3399)
Browse files Browse the repository at this point in the history
  • Loading branch information
ForsakenHarmony authored Jan 20, 2023
1 parent 24b6b3c commit 8e202bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/next-core/js/src/entry/app-renderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ async function runOperation(renderData: RenderData) {
rootMainFiles: Object.values(layoutInfoChunks)
.flat()
.concat(BOOTSTRAP)
.filter((path) => !path.endsWith(".css")),
.filter((path) => path.endsWith(".js")),
devFiles: [],
ampDevFiles: [],
lowPriorityFiles: [],
Expand Down

0 comments on commit 8e202bb

Please sign in to comment.