Skip to content

Commit 6f8b2e5

Browse files
committed
fix: include css files in handler functions
1 parent e7d381c commit 6f8b2e5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

plugin/src/helpers/config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ export const configureHandlerFunctions = ({ netlifyConfig, publish, ignore = []
102102
`${publish}/BUILD_ID`,
103103
`${publish}/static/chunks/webpack-middleware*.js`,
104104
`!${publish}/server/**/*.js.nft.json`,
105+
`${publish}/static/**/*.css`,
105106
...ignore.map((path) => `!${slash(path)}`),
106107
)
107108

test/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,7 @@ describe('onBuild()', () => {
454454
'.next/BUILD_ID',
455455
'.next/static/chunks/webpack-middleware*.js',
456456
'!.next/server/**/*.js.nft.json',
457+
'.next/static/**/*.css',
457458
'!../../node_modules/next/dist/compiled/@ampproject/toolbox-optimizer/**/*',
458459
`!node_modules/next/dist/server/lib/squoosh/**/*.wasm`,
459460
`!node_modules/next/dist/next-server/server/lib/squoosh/**/*.wasm`,

0 commit comments

Comments
 (0)