Skip to content

Commit 1f689b2

Browse files
authored
Merge branch 'main' into mk/misc-docs
2 parents 90b50dc + e44226c commit 1f689b2

File tree

10 files changed

+2965
-1245
lines changed

10 files changed

+2965
-1245
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## [4.2.0](https://www.github.com/netlify/netlify-plugin-nextjs/compare/v4.1.3...v4.2.0) (2022-01-17)
4+
5+
6+
### Features
7+
8+
* add request logging ([#1127](https://www.github.com/netlify/netlify-plugin-nextjs/issues/1127)) ([010e86c](https://www.github.com/netlify/netlify-plugin-nextjs/commit/010e86c7c7513df8676dd8b3c747dcfa81fbc09e))
9+
310
### [4.1.3](https://www.github.com/netlify/netlify-plugin-nextjs/compare/v4.1.2...v4.1.3) (2022-01-13)
411

512

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,14 @@ Netlify [asset optimization](https://docs.netlify.com/site-deploys/post-processi
9898
sites. Assets are already optimized by Next.js at build time, and doing further optimization can break your site. Ensure
9999
that it is not enabled at **Site settings > Build & deploy > Post processing > Asset optimization**.
100100

101+
## Generated functions
102+
103+
This plugin works by generating three Netlify functions that handle requests that haven't been pre-rendered. These are
104+
`___netlify-handler` (for SSR and API routes), `___netlify-odb-handler` (for ISR and fallback routes), and `_ipx` (for
105+
images). You can see the requests for these in [the function logs](https://docs.netlify.com/functions/logs/). For ISR
106+
and fallback routes you will not see any requests that are served from the edge cache, just actual rendering requests.
107+
These are all internal functions, so you won't find them in your site's own functions directory.
108+
101109
## Feedback
102110

103111
If you think you have found a bug in the plugin,

cypress/integration/default/default.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ describe('Default site', () => {
44
})
55

66
it('loads home page', () => {
7-
cy.findByText('Next Demo!')
7+
cy.findByText('NextJS on Netlify (imported Header component)')
88
cy.findByTestId('list-server-side').within(() => {
99
cy.findAllByRole('link').should('have.length', 5)
1010
})

demos/default/components/Header.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export default function Header() {
2-
return <h1>Next Demo!</h1>
2+
return <h1>NextJS on Netlify (imported Header component)</h1>
33
}

demos/default/pages/_app.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
import '../styles/globals.css'
22

33
function MyApp({ Component, pageProps }) {
4-
return <Component {...pageProps} />
4+
return (
5+
<div className='prose ml-14 mt-10 mb-20'>
6+
<Component {...pageProps} />
7+
</div>
8+
)
59
}
610

711
export default MyApp

0 commit comments

Comments
 (0)