-
-
Notifications
You must be signed in to change notification settings - Fork 455
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
Failing to generate new pages after build(ISR) #2563
Comments
I'm having the same issue.To prove that ISR is working, a timestamp is shown on the page. ISR is working on localhost, but once deployed to AWS, it uses the same pre-rendered page even with revalidation.
serverless.yml
Things I tried on
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Content of serverless.yml
The deployment works fine, I deploy from my machine, without any errors.
I'm trying to enable ISR on my project to be able ti generate pages and my
getStaticProps
looks like thisActual behavior
I have a url structure like this
https://d1ut6e5vnq8i6g.cloudfront.net/offering/{:id}/
. If theid
exists in mygetStaticPaths
, it works fine. However whenid
is new, and I assume that's when regeneration should happen. However, in those cases application fails with he following error.Application error: a client-side exception has occurred (see the browser console for more information).
This is the browser console log.
Seems like the issue is the 404 request to get static props, which works fine for all existing ids.
https://d1ut6e5vnq8i6g.cloudfront.net/_next/data/99wTahfTVhXTAQeDVyzQ3/offering/991a5af4-57ed-4822-855c-02ce590dbd71.json?offering_id=991a5af4-57ed-4822-855c-02ce590dbd71
*note all application logic is removed form the code for simplicity, so my code is exactly as above.
The Lambda for regeneration is being called as expected, it seems, without error, but the files are not added to
S3
, and no lambda is called besides regeneration lambda(not sure when they meant to).Expected behavior
I expect the page to be generated on request and returned which does not happen.
Can anyone relate the issue, or might be I'm using wrong configuration?
The text was updated successfully, but these errors were encountered: