Skip to content

Commit 02948d6

Browse files
committed
Apply correct layer
1 parent 05f75a3 commit 02948d6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/next/build/entries.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,10 @@ export function getViewsEntry(opts: {
313313
viewsDir: string
314314
pageExtensions: string[]
315315
}) {
316-
return `next-view-loader?${stringify(opts)}!`
316+
return {
317+
import: `next-view-loader?${stringify(opts)}!`,
318+
layer: 'sc_server',
319+
}
317320
}
318321

319322
export function getServerlessEntry(opts: {

0 commit comments

Comments
 (0)