Skip to content

Update routing.mdx to reflect the need for adapters and prerender binding in SSR mode#11501

Merged
sarah11918 merged 5 commits intowithastro:mainfrom
CinisBorn:patch-2
Apr 24, 2025
Merged

Update routing.mdx to reflect the need for adapters and prerender binding in SSR mode#11501
sarah11918 merged 5 commits intowithastro:mainfrom
CinisBorn:patch-2

Conversation

@CinisBorn
Copy link
Copy Markdown
Contributor

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)

  • Closes #
  • Suggested label:

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.
@netlify
Copy link
Copy Markdown

netlify bot commented Apr 22, 2025

Deploy Preview for astro-docs-2 ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 5344670
🔍 Latest deploy log https://app.netlify.com/sites/astro-docs-2/deploys/680aaa1efc58c60008d41935
😎 Deploy Preview https://deploy-preview-11501--astro-docs-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@astrobot-houston
Copy link
Copy Markdown
Contributor

astrobot-houston commented Apr 22, 2025

Lunaria Status Overview

🌕 This pull request will trigger status changes.

Learn more

By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.

You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

File Note
en/guides/cms/preprcms.mdx Source changed, localizations will be marked as outdated.
en/guides/cms/strapi.mdx Source changed, localizations will be marked as outdated.
en/guides/routing.mdx Source changed, localizations will be marked as outdated.
Warnings reference
Icon Description
🔄️ The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

@astrobot-houston
Copy link
Copy Markdown
Contributor

Hello! Thank you for opening your first PR to Astro’s Docs! 🎉

Here’s what will happen next:

  1. Our GitHub bots will run to check your changes.
    If they spot any broken links you will see some error messages on this PR.
    Don’t hesitate to ask any questions if you’re not sure what these mean!

  2. In a few minutes, you’ll be able to see a preview of your changes on Netlify 🥳.

  3. One or more of our maintainers will take a look and may ask you to make changes.
    We try to be responsive, but don’t worry if this takes a few days.

Copy link
Copy Markdown
Member

@sarah11918 sarah11918 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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! 🥳

@sarah11918 sarah11918 added improve or update documentation Enhance / update existing documentation (e.g. add example, improve description, update for changes) code snippet update Updates a code sample: typo, outdated code etc. labels Apr 24, 2025
@sarah11918 sarah11918 merged commit 0df1418 into withastro:main Apr 24, 2025
10 checks passed
ArmandPhilippot added a commit to ArmandPhilippot/astro-docs that referenced this pull request Apr 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code snippet update Updates a code sample: typo, outdated code etc. improve or update documentation Enhance / update existing documentation (e.g. add example, improve description, update for changes)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants