Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 🐛 include terser bundle into netlify functions #1295

Merged
merged 5 commits into from
Apr 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cypress/integration/default/preview.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
1 change: 0 additions & 1 deletion src/helpers/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
)
}

Expand Down
1 change: 0 additions & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down