Update routing.mdx to reflect the need for adapters and prerender binding in SSR mode#11501
Update routing.mdx to reflect the need for adapters and prerender binding in SSR mode#11501sarah11918 merged 5 commits intowithastro:mainfrom CinisBorn:patch-2
Conversation
I added a change to the “SSR Mode” topic, because an error occurred when I tried to create dynamic routes using SSR instead of SSG. The error in question complains about the lack of “getStaticPaths()” when I try to create the build with dynamic routes without a “getStaticPaths()”. The solution I found in programming communities was to add an extra line, disabling “pre-rendering” in conjunction with an integrated SSR adapter.
✅ Deploy Preview for astro-docs-2 ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
Lunaria Status Overview🌕 This pull request will trigger status changes. Learn moreBy default, every PR changing files present in the Lunaria configuration's You can change this by adding one of the keywords present in the Tracked Files
Warnings reference
|
|
Hello! Thank you for opening your first PR to Astro’s Docs! 🎉 Here’s what will happen next:
|
sarah11918
left a comment
There was a problem hiding this comment.
Thank you very much for this contribution @Zafkiel45 !
Adding export const prerender = false; is a helpful improvement to this code example! We do have a standard wording we use because this line isn't always required (it depends on your output setting: static or server). So I just added that to your line.
Also, we are trying to use the phrase on-demand rendering instead of SSR wherever we can, so I updated the section heading too!
Thank you for taking the time to make docs better, and welcome to Team Docs! 🥳
I added a change to the “SSR Mode” topic, because an error occurred when I tried to create dynamic routes using SSR instead of SSG. The error in question complains about the lack of “getStaticPaths()” when I try to create the build with dynamic routes without a “getStaticPaths()”. The solution I found in programming communities was to add an extra line, disabling “pre-rendering” in conjunction with an integrated SSR adapter.
Description (required)
Related issues & labels (optional)