This repository has been archived by the owner on Jan 28, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 461
fix redirect in getStaticProps #2393
Merged
dphang
merged 2 commits into
serverless-nextjs:master
from
KensukeTakahara:fix_redirect_in_getStaticProps
Mar 9, 2022
Merged
fix redirect in getStaticProps #2393
dphang
merged 2 commits into
serverless-nextjs:master
from
KensukeTakahara:fix_redirect_in_getStaticProps
Mar 9, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
thx, I think you can rebase since the lockfile is fixed now. |
8f53b9d
to
d07e061
Compare
Handler Size Report
Base Handler Sizes (kB) (commit ec98072){
"Lambda": {
"Default Lambda": {
"Standard": 1524,
"Minified": 668
},
"Image Lambda": {
"Standard": 1488,
"Minified": 800
}
},
"Lambda@Edge": {
"Default Lambda": {
"Standard": 1534,
"Minified": 674
},
"Default Lambda V2": {
"Standard": 1526,
"Minified": 670
},
"API Lambda": {
"Standard": 634,
"Minified": 318
},
"Image Lambda": {
"Standard": 1496,
"Minified": 805
},
"Regeneration Lambda": {
"Standard": 1187,
"Minified": 546
},
"Regeneration Lambda V2": {
"Standard": 1253,
"Minified": 573
}
}
} New Handler Sizes (kB) (commit d07e061){
"Lambda": {
"Default Lambda": {
"Standard": 1524,
"Minified": 668
},
"Image Lambda": {
"Standard": 1488,
"Minified": 800
}
},
"Lambda@Edge": {
"Default Lambda": {
"Standard": 1535,
"Minified": 674
},
"Default Lambda V2": {
"Standard": 1526,
"Minified": 670
},
"API Lambda": {
"Standard": 634,
"Minified": 318
},
"Image Lambda": {
"Standard": 1496,
"Minified": 805
},
"Regeneration Lambda": {
"Standard": 1187,
"Minified": 546
},
"Regeneration Lambda V2": {
"Standard": 1253,
"Minified": 573
}
}
} |
Codecov Report
@@ Coverage Diff @@
## master #2393 +/- ##
==========================================
- Coverage 83.77% 83.61% -0.16%
==========================================
Files 102 102
Lines 3697 3705 +8
Branches 1186 1188 +2
==========================================
+ Hits 3097 3098 +1
- Misses 588 595 +7
Partials 12 12
Continue to review full report at Codecov.
|
dphang
approved these changes
Mar 8, 2022
Hm, actually seems this might have broke one test in https://github.com/serverless-nextjs/serverless-next.js/runs/5485904554?check_suite_focus=true, maybe you can check it? |
@dphang @KensukeTakahara This breaks my App. I just get a JSON Response instead of a redirect. (when i directly access a page) |
# for free
to subscribe to this conversation on GitHub.
Already have an account?
#.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This fixes #2346.
Added redirect to getStaticProps as shown in the code below.
And I deployed it to vercel, and the following response was returned.
Therefore, I stopped returning 307 and return 200 & json body.