root index with getServerSideProps always refreshes when it is linked to
See original GitHub issueDescribe 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:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve just published a new alpha @sls-next/serverless-component@1.17.0-alpha.9 👍
awesome, thank you! any idea when it will be released?