Add need for adapter to server islands guide#10418
Conversation
✅ Deploy Preview for astro-docs-2 ready!
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
|
yanthomasdev
left a comment
There was a problem hiding this comment.
Just a small detail, but should be good to go after you address it
| To render any page on demand, you need to add an **adapter**. Each adapter allows Astro to output a script that runs your project on a specific **runtime**: the environment that runs code on the server to generate pages when they are requested (e.g. Netlify, Cloudflare). | ||
|
|
||
| You may also wish to add an adapter even if your site is entirely static and you are not rendering any pages on demand. For example, the [Netlify adapter](/en/guides/integrations-guide/netlify/) enables Netlify's Image CDN, and the [Vercel adapter](/en/guides/integrations-guide/vercel/) enables services such as web analytics. | ||
| You may also wish to add an adapter even if your site is entirely static and you are not rendering any pages on demand. For example, the [Netlify adapter](/en/guides/integrations-guide/netlify/) enables Netlify's Image CDN, and [server islands](/en/guides/server-islands/) require an adapter to use `server:defer` on a component. |
There was a problem hiding this comment.
I am not so sure about the wording, at first I got confused because it sounded like the adapter is what needs to use server:defer on a component, not that you need an adapter to use server islands. Or it might just be a brain fart on my side, it happens.
Maybe something like this is more clear?
| You may also wish to add an adapter even if your site is entirely static and you are not rendering any pages on demand. For example, the [Netlify adapter](/en/guides/integrations-guide/netlify/) enables Netlify's Image CDN, and [server islands](/en/guides/server-islands/) require an adapter to use `server:defer` on a component. | |
| You may also wish to add an adapter even if your site is entirely static and you are not rendering any pages on demand. For example, the [Netlify adapter](/en/guides/integrations-guide/netlify/) enables Netlify's Image CDN, and to use [server islands](/en/guides/server-islands/) you also require an adapter to allow you to use `server:defer` on components. |
There was a problem hiding this comment.
lol, yours seems more convoluted to me, so we might need an impartial judge here! 💜
Would something like this, keeping the original structure, be clearer?
"server islands require an adapter installed to use server:defer on a component"
"server islands require an adapter installed to add server:defer to a component"
Description (required)
This PR adds explicit mention that server islands require an adapter installed (in three places).