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
0538a0dc
Commit
0538a0dc
authored
Jun 11, 2024
by
Janka Uryga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[not a backport] fix lint errors
parent
2807fb48
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
next-metadata-route-loader.ts
...t/src/build/webpack/loaders/next-metadata-route-loader.ts
+2
-2
base-server.ts
packages/next/src/server/base-server.ts
+10
-10
No files found.
packages/next/src/build/webpack/loaders/next-metadata-route-loader.ts
View file @
0538a0dc
...
...
@@ -57,8 +57,8 @@ async function getStaticAssetRouteCode(
fileBaseName
===
'favicon'
?
'public, max-age=0, must-revalidate'
:
process
.
env
.
NODE_ENV
!==
'production'
?
cacheHeader
.
none
:
cacheHeader
.
longCache
?
cacheHeader
.
none
:
cacheHeader
.
longCache
const
code
=
`\
/* static asset route */
import { NextResponse } from 'next/server'
...
...
packages/next/src/server/base-server.ts
View file @
0538a0dc
...
...
@@ -852,8 +852,8 @@ export default abstract class Server<ServerOptions extends Options = Options> {
...(
typeof
val
===
'string'
?
[
val
]
:
Array
.
isArray
(
val
)
?
val
:
[]),
?
val
:
[]),
]),
]
}
...
...
@@ -904,8 +904,8 @@ export default abstract class Server<ServerOptions extends Options = Options> {
req
.
headers
[
'x-forwarded-port'
]
??
=
this
.
port
?
this
.
port
.
toString
()
:
isHttps
?
'443'
:
'80'
?
'443'
:
'80'
req
.
headers
[
'x-forwarded-proto'
]
??
=
isHttps
?
'https'
:
'http'
req
.
headers
[
'x-forwarded-for'
]
??
=
originalRequest
.
socket
?.
remoteAddress
...
...
@@ -1674,8 +1674,8 @@ export default abstract class Server<ServerOptions extends Options = Options> {
typeof
fallbackField
===
'string'
?
'static'
:
fallbackField
===
null
?
'blocking'
:
fallbackField
,
?
'blocking'
:
fallbackField
,
}
}
...
...
@@ -2647,10 +2647,10 @@ export default abstract class Server<ServerOptions extends Options = Options> {
isOnDemandRevalidate
?
'REVALIDATED'
:
cacheEntry
.
isMiss
?
'MISS'
:
cacheEntry
.
isStale
?
'STALE'
:
'HIT'
?
'MISS'
:
cacheEntry
.
isStale
?
'STALE'
:
'HIT'
)
}
...
...
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