diff --git a/cypress/integration/default/preview.spec.ts b/cypress/integration/default/preview.spec.ts index 7e553f4157..f31ce588a0 100644 --- a/cypress/integration/default/preview.spec.ts +++ b/cypress/integration/default/preview.spec.ts @@ -2,7 +2,7 @@ describe('Preview Mode', () => { it('enters and exits preview mode', () => { // preview mode is off by default cy.visit('/previewTest') - cy.findByText('Is preview? No') + cy.findByText('Is preview? No', {selector: 'h1'}) // enter preview mode cy.request('/api/enterPreview').then((response) => { diff --git a/src/helpers/config.ts b/src/helpers/config.ts index 5bd4e9e8d8..3142e33715 100644 --- a/src/helpers/config.ts +++ b/src/helpers/config.ts @@ -76,7 +76,6 @@ export const configureHandlerFunctions = ({ netlifyConfig, publish, ignore = [] `!${nextRoot}/dist/next-server/server/lib/squoosh/**/*.wasm`, `!${nextRoot}/dist/compiled/webpack/bundle4.js`, `!${nextRoot}/dist/compiled/webpack/bundle5.js`, - `!${nextRoot}/dist/compiled/terser/bundle.min.js`, ) } diff --git a/test/index.js b/test/index.js index d12149921a..39639a907b 100644 --- a/test/index.js +++ b/test/index.js @@ -358,7 +358,6 @@ describe('onBuild()', () => { `!node_modules/next/dist/next-server/server/lib/squoosh/**/*.wasm`, '!node_modules/next/dist/compiled/webpack/bundle4.js', '!node_modules/next/dist/compiled/webpack/bundle5.js', - '!node_modules/next/dist/compiled/terser/bundle.min.js', '!node_modules/sharp/**/*', ] // Relative paths in Windows are different