- We need to know your netlify site name: https://mikeshyped.netlify.app/
Hi, I’m attempting to deploy an astro SSR site in hybrid mode that has endpoints that are rendered by the server when called. I also have API endpoints in astro that create an open connection for server sent events.
I’m running into an issue where the netlify deployed site does not seem to support the dynamically rendered pages.
I have page with a slug that is generated on-demand. The astro path looks like:
/src/pages/room/[...room].astro
Calling this page generates a random custom path if one is not provided in the URL, and redirects there:
if (Astro.url.pathname === '/room' || Astro.url.pathname === '/room/') {
return Astro.redirect('/room/' + generateRoomName(), 303)
}
It also has a component that calls an astro API to establish a connection to listen for server side events.
/src/pages/sse/[...sse].ts
When attempting to browse to /room/, nothing happens and the home page is reloaded. I’m struggling to understand what might be going on with the functions to cause this.
I’m using the astro netlify adapter and my config looks like this:
export default defineConfig({
site: "https://mikeshyped.com",
integrations: [mdx(), sitemap(), solidJs(), tailwind({ applyBaseStyles: false })],
output: "hybrid",
adapter: netlify()
})
Thank you!!