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
77738ede
Unverified
Commit
77738ede
authored
Dec 01, 2022
by
Leonardo Ortiz
Committed by
GitHub
Dec 01, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Group redirect status imports (#43480)
Group imports from the same source that were separated
parent
7a7e7d4f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
redirect-status.ts
packages/next/lib/redirect-status.ts
+4
-2
No files found.
packages/next/lib/redirect-status.ts
View file @
77738ede
import
{
PERMANENT_REDIRECT_STATUS
}
from
'../shared/lib/constants'
import
{
import
{
TEMPORARY_REDIRECT_STATUS
}
from
'../shared/lib/constants'
PERMANENT_REDIRECT_STATUS
,
TEMPORARY_REDIRECT_STATUS
,
}
from
'../shared/lib/constants'
export
const
allowedStatusCodes
=
new
Set
([
301
,
302
,
303
,
307
,
308
])
export
const
allowedStatusCodes
=
new
Set
([
301
,
302
,
303
,
307
,
308
])
...
...
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