Skip to content

Commit 7ec3740

Browse files
committed
chore: exclude nft from zip
1 parent ad3810e commit 7ec3740

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/helpers/config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ exports.configureHandlerFunctions = ({ netlifyConfig, publish, ignore = [] }) =>
150150
`${publish}/*.json`,
151151
`${publish}/BUILD_ID`,
152152
`${publish}/static/chunks/webpack-middleware*.js`,
153+
`!${publish}/server/**/*.js.nft.json`,
153154
...ignore.map((path) => `!${slash(path)}`),
154155
)
155156

src/helpers/files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ exports.moveStaticPages = async ({ netlifyConfig, target, i18n, failBuild }) =>
2323
await move(source, dest)
2424
}
2525
// Move all static files, except error documents and nft manifests
26-
const pages = await glob('**/!(500|404|*.nft).{html,json}', {
26+
const pages = await glob('**/!(500|404|*.js.nft).{html,json}', {
2727
cwd: root,
2828
dot: true,
2929
})

test/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ describe('onBuild()', () => {
256256
'.next/*.json',
257257
'.next/BUILD_ID',
258258
'.next/static/chunks/webpack-middleware*.js',
259+
'!.next/server/**/*.js.nft.json',
259260
'!../node_modules/next/dist/compiled/@ampproject/toolbox-optimizer/**/*',
260261
`!node_modules/next/dist/server/lib/squoosh/**/*.wasm`,
261262
`!node_modules/next/dist/next-server/server/lib/squoosh/**/*.wasm`,

0 commit comments

Comments
 (0)