question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

root index with getServerSideProps always refreshes when it is linked to

See original GitHub issue

Describe the bug My pages/index.js is using getServerSideProps however whenever I navigate to ‘/’, there is a request to /_next/data/Vx6ssUqy_vsAbgwbMmDrO/index.json which returns 503 lambda execution error then reloads the index page which then loads fine. Inside the manifest.json, "/": "pages/index.js" is under nonDynamic unlike other pages with getServerSideProps which are under dynamic. Been trying to figure this out of a few days and its driving me crazy! I’m on @sls-next/serverless-component@1.17.0-alpha.5 and nextjs@9.5

Using getStaticProps fixes the issue but this is about using getServerSideProps

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
danielcondemarincommented, Aug 31, 2020

I’ve just published a new alpha @sls-next/serverless-component@1.17.0-alpha.9 👍

1reaction
danjirocommented, Aug 31, 2020

awesome, thank you! any idea when it will be released?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Refreshing Server-Side Props - Next.js - Josh W Comeau
In a Next.js application I'm working on, I have an "admin" page, which lets me manage registered users: A screenshot of a dashboard...
Read more >
Dev mode keeps refreshing #29184 - vercel/next.js - GitHub
Expected Behavior. Application in dev mode only refreshes when code changes are made (and then hot reloads if possible).
Read more >
Data Fetching: getServerSideProps - Next.js
getServerSideProps returns JSON which will be used to render the page. All this work will be handled automatically by Next.js, so you don't...
Read more >
Server Side Rendered page not always being rendered correctly
I am new to NextJS, but I think you should try passing the productList object to the index.js page, rather than useSelector.
Read more >
How and why to use getServerSideProps in Next JS - YouTube
Github Repo: https://github.com/Jerga99/content-manager-youtubeFull Course: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found