-
-
Notifications
You must be signed in to change notification settings - Fork 457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix redirect in getStaticProps #2393
fix redirect in getStaticProps #2393
Conversation
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.
|
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) |
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.