Hey all, building out a Quasar app using SPA, and deploying to Vercel was pretty simple. However, now that I'm trying to transition it into an SSR app (I want to protect all the endpoints behind middleware) I am having trouble getting the deployment working. It's giving the 404 error. It seems the build completes just fine?
Right now the framework settings I'm using are Output Director: dist/ssr Development Command: quasar dev -m ssr --port $PORT
I was trying some vercel.json config builds but really wasn't sure how to do it, and Cursor was sending me in circles.
I'm sure this might be something basic but I'm finding very little information online about similar problems; just a few people with similar trouble getting SSR working.
Update: Following the tagged Express-related docs since Express is what Quasar uses for SSR, I have at least gotten my deployment pointing at the plain-text of my minified index page; now I have to figure out how to get it running! https://community.vercel.com/t/debugging-404-errors/437
Adding /api/index.js and pointing it using the rewrites got me here thus far.
Update2: I saw some advice on changing the SSRListen to return a handler for serverless and requiring serverless-http:
export const listen = defineSsrListen(({ app, devHttpsApp, port }) => { if (process.env.DEV) { return (devHttpsApp || app).listen(port); } // Vercel uses this return { handler: serverless(app) };});Now I am getting to 504 Gateway_TimeOut, where This Serverless Function has timed out but your connection is working correctly.