-
Notifications
You must be signed in to change notification settings - Fork 10k
Open
Labels
content:editRequest for content editsRequest for content editsdocumentationDocumentation editsDocumentation editsproduct:developer-spotlightstale
Description
Existing documentation URL(s)
What changes are you suggesting?
User reported this tutorial was broken in Astro discord.
It contains a couple issues:
- It suggests users use
export const prerender = falsein a component, but this needs to be done at the page level ( insrc/pages/route.astro) - It suggests users handle post requests to the route in the component, but this needs also needs to be done at the page level
- It mentions that users can make a page not be pre-rendered using a template directive, but this isn't accurate
- It suggests users use
import.meta.envto access secrets, but this needs to be done either withAstro.locals.runtime.envor using Astro's Typesafe env helper
This guide could be updated to use Astro actions and Astro:env. There is a resend astro guide we can model it after. It could also benefit from using the package manager code block tabs for some of the code blocks as well.
Here is a repo that shows what the tutorial might result in if updated, it could be cut down a lot too of course
Additional information
No response
Metadata
Metadata
Assignees
Labels
content:editRequest for content editsRequest for content editsdocumentationDocumentation editsDocumentation editsproduct:developer-spotlightstale