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
4ba6447e
Unverified
Commit
4ba6447e
authored
May 23, 2019
by
JJ Kasper
Committed by
GitHub
May 23, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't load from serverless in dev mode (#7416)
parent
bf294ee4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
next-server.ts
packages/next-server/server/next-server.ts
+2
-1
No files found.
packages/next-server/server/next-server.ts
View file @
4ba6447e
...
@@ -49,6 +49,7 @@ export default class Server {
...
@@ -49,6 +49,7 @@ export default class Server {
runtimeConfig
?:
{
[
key
:
string
]:
any
}
runtimeConfig
?:
{
[
key
:
string
]:
any
}
assetPrefix
?:
string
,
assetPrefix
?:
string
,
autoExport
:
boolean
,
autoExport
:
boolean
,
dev
?:
boolean
,
}
}
router
:
Router
router
:
Router
...
@@ -349,7 +350,7 @@ export default class Server {
...
@@ -349,7 +350,7 @@ export default class Server {
query
:
ParsedUrlQuery
=
{},
query
:
ParsedUrlQuery
=
{},
opts
:
any
,
opts
:
any
,
)
{
)
{
const
serverless
=
this
.
nextConfig
.
target
===
'serverless'
const
serverless
=
!
this
.
renderOpts
.
dev
&&
this
.
nextConfig
.
target
===
'serverless'
// try serving a static AMP version first
// try serving a static AMP version first
if
(
query
.
amp
)
{
if
(
query
.
amp
)
{
try
{
try
{
...
...
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