Join the AI Workshop and learn to build real-world apps with AI. A hands-on, practical program to level up your skills.
I wrote in Astro page layout and middleware execution order how I moved some logic to a layout.
I had to roll back because it turns out I couldn’t run Astro.redirect() in a layout, since Astro reports that the response has already been sent to the client.
Turns out this was something I absolutely needed, so I moved back to handling the logic in the pages, which was ultimately the right thing from the start.
Discovering new things each and every day.