Skip to content

chore: update to Next 11 #420

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

Merged
merged 6 commits into from
Jun 17, 2021
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
4 changes: 2 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { overrides } = require('@netlify/eslint-config-node')
const { overrides } = require('@netlify/eslint-config-node/react_config')

module.exports = {
extends: '@netlify/eslint-config-node',
extends: '@netlify/eslint-config-node/react_config',
rules: {
complexity: 0,
'fp/no-let': 0,
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,4 @@ Temporary Items
.apdisk

# End of https://www.toptal.com/developers/gitignore/api/osx,node
demo/package-lock.json
4 changes: 4 additions & 0 deletions demo/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "next",
"root": true
}
4 changes: 4 additions & 0 deletions demo/next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
// Supported targets are "serverless" and "experimental-serverless-trace"
target: "serverless"
}
2 changes: 1 addition & 1 deletion demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"start": "next start"
},
"dependencies": {
"next": "10.2.3",
"next": "^11.0.0",
"react": "17.0.2",
"react-dom": "17.0.2"
}
Expand Down
4 changes: 2 additions & 2 deletions demo/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const Index = ({ shows }) => (
<h1>3. Catch-All Routes? Included ✔</h1>
<p>
You can even take advantage of{' '}
<a href="https://nextjs.org/docs/routing/dynamic-routes#catch-all-routes">NextJS' catch-all routes feature</a>
<a href="https://nextjs.org/docs/routing/dynamic-routes#catch-all-routes">NextJS catch-all routes feature</a>
.
<br />
Here are three examples:
Expand Down Expand Up @@ -90,7 +90,7 @@ const Index = ({ shows }) => (
<br />
Only dynamic pages are server-side rendered.
<br />
Static pages are pre-rendered and served directly by Netlify's CDN.
Static pages are pre-rendered and served directly by Netlify&apos;s CDN.
</p>

<ul>
Expand Down
2 changes: 1 addition & 1 deletion demo/pages/static.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const Static = (props) => (
<br />
It is never server-side rendered.
<br />
It is served directly by Netlify's CDN.
It is served directly by Netlify&apos;s CDN.
<br />
The <a href="https://www.npmjs.com/package/next-on-netlify">next-on-netlify</a> npm package takes care of deciding
which pages to render server-side and which ones to serve directly via CDN.
Expand Down
4 changes: 2 additions & 2 deletions demo/pages/static/[id].js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const StaticWithID = (props) => (
<br />
It is never server-side rendered.
<br />
It is served directly by Netlify's CDN.
It is served directly by Netlify&apos;s CDN.
<br />
<br />
But it has a dynamic URL parameter: /static/:id.
Expand All @@ -18,7 +18,7 @@ const StaticWithID = (props) => (
<br />
I am not sure what this is useful for.
<br />
But it's a feature of NextJS, so... I'm supporting it.
But it&apos;s a feature of NextJS, so... I&apos;m supporting it.
</p>

<hr />
Expand Down
Loading