Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
494889ac
Unverified
Commit
494889ac
authored
Mar 01, 2019
by
Joe Haddad
Committed by
GitHub
Mar 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Format a few documents (#6505)
parent
a9c39885
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
386 additions
and
155 deletions
+386
-155
next-server.ts
packages/next-server/server/next-server.ts
+150
-46
render.tsx
packages/next-server/server/render.tsx
+3
-1
_document.js
packages/next/pages/_document.js
+233
-108
No files found.
packages/next-server/server/next-server.ts
View file @
494889ac
This diff is collapsed.
Click to expand it.
packages/next-server/server/render.tsx
View file @
494889ac
...
@@ -213,7 +213,9 @@ export async function renderToHTML(
...
@@ -213,7 +213,9 @@ export async function renderToHTML(
}
}
if
(
dev
&&
(
props
.
router
||
props
.
Component
))
{
if
(
dev
&&
(
props
.
router
||
props
.
Component
))
{
throw
new
Error
(
`'router' and 'Component' can not be returned in getInitialProps from _app.js https://err.sh/zeit/next.js/cant-override-next-props.md`
)
throw
new
Error
(
`'router' and 'Component' can not be returned in getInitialProps from _app.js https://err.sh/zeit/next.js/cant-override-next-props.md`
,
)
}
}
const
{
const
{
...
...
packages/next/pages/_document.js
View file @
494889ac
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment