What:
I am looking to build and deploy an Astro SSR project to Firebase
hosting.
Problem / Issue:
Astro requires an adapter to be installed to build. I installed the node adapter; which is definitely not the right thing to do
Firebase hosting docs says it supports SSR (next JavaScript) - Docs
Have no idea how to deploy SSR. Already have a cloud function to retrieve data from firestore.
Adding on to gil.dev's correct answer, to use Astro with SSR, the @astrojs/node
adapter is correct choice, but you must use it in middleware mode.
import { defineConfig } from 'astro/config';
import node from '@astrojs/node'
// https://astro.build/config
export default defineConfig({
adapter: node({
mode: "middleware"
})
});