This repository was archived by the owner on Jan 28, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 459
Use basepath in s3 assets #2265
Merged
dphang
merged 1 commit into
serverless-nextjs:master
from
TowardsDeath:fix/1620-basepath-in-cdk-construct
Jan 19, 2022
Merged
Use basepath in s3 assets #2265
dphang
merged 1 commit into
serverless-nextjs:master
from
TowardsDeath:fix/1620-basepath-in-cdk-construct
Jan 19, 2022
Conversation
This file contains hidden or 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
Handler Size Report
Base Handler Sizes (kB) (commit aab033f){
"Lambda": {
"Default Lambda": {
"Standard": 1525,
"Minified": 668
},
"Image Lambda": {
"Standard": 1489,
"Minified": 802
}
},
"Lambda@Edge": {
"Default Lambda": {
"Standard": 1534,
"Minified": 674
},
"Default Lambda V2": {
"Standard": 1527,
"Minified": 670
},
"API Lambda": {
"Standard": 634,
"Minified": 318
},
"Image Lambda": {
"Standard": 1497,
"Minified": 807
},
"Regeneration Lambda": {
"Standard": 1184,
"Minified": 545
},
"Regeneration Lambda V2": {
"Standard": 1254,
"Minified": 573
}
}
} New Handler Sizes (kB) (commit b36be83){
"Lambda": {
"Default Lambda": {
"Standard": 1525,
"Minified": 668
},
"Image Lambda": {
"Standard": 1489,
"Minified": 802
}
},
"Lambda@Edge": {
"Default Lambda": {
"Standard": 1534,
"Minified": 674
},
"Default Lambda V2": {
"Standard": 1527,
"Minified": 670
},
"API Lambda": {
"Standard": 634,
"Minified": 318
},
"Image Lambda": {
"Standard": 1497,
"Minified": 807
},
"Regeneration Lambda": {
"Standard": 1184,
"Minified": 545
},
"Regeneration Lambda V2": {
"Standard": 1254,
"Minified": 573
}
}
} |
Codecov Report
@@ Coverage Diff @@
## master #2265 +/- ##
==========================================
+ Coverage 83.51% 83.54% +0.03%
==========================================
Files 102 102
Lines 3669 3671 +2
Branches 1167 1169 +2
==========================================
+ Hits 3064 3067 +3
+ Misses 593 592 -1
Partials 12 12
Continue to review full report at Codecov.
|
I think this is fine as it's a small enough change. Thx! |
dphang
approved these changes
Jan 19, 2022
Hm I think from the stacktrace it looks like the error is coming from the
Next.js chunks? can you actually find the code where it's failing and see
if it's coming from the library? maybe at
/var/task/chunks/595.js:417276:13? I didn't change anything in the ISR code
but seems like might be some Next.js version issue..maybe there's some
compatibility issue with the latest version?
…On Sat, Jan 22, 2022 at 8:31 AM moshfrid ***@***.***> wrote:
i dont know why, but using this new alpha version seems to break isr.
[image: image]
<https://user-images.githubusercontent.com/20837433/150647163-1a4434f8-8e91-41c9-9256-91855f26c21c.png>
—
Reply to this email directly, view it on GitHub
<#2265 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAYSQFFVWAC3WFEXEERSXS3UXLLUVANCNFSM5ME6IOTA>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***
com>
|
I've had this error as well with Next, even before this change, so my guess is that it's not serverless-nextjs' fault. I haven't yet investigated what could be the cause. |
@DoNormal I'm not having any issues using the alpha.4 tho |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
I ran into the problem described in #1620: when using a
basePath
in the Next.js application, the S3 asset bucket remains empty. There was a fix mentioned in the issue, but no PR yet, so I've taken the liberty to make that change and open this PR. I tried the change locally and it worked.@dphang or any other maintainer: I'm of course willing to add tests, but I couldn't figure out how to integrate such a basePath test with the existing CDK tests.