You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to use Fastify with SSR, you would need to use a compatibility layer such as @fastify/middie or @fastify/express. That is because Quasar uses and expects connect/express-like middleware. However, the registration process for those plugins is async, which is problematic as create is expected to be synchronous. https://github.com/fastify/middie#usage
For the dev web server, we should be able to just put an await here:
In order to use Fastify with SSR, you would need to use a compatibility layer such as
@fastify/middie
or@fastify/express
. That is because Quasar uses and expects connect/express-like middleware. However, the registration process for those plugins is async, which is problematic ascreate
is expected to be synchronous.https://github.com/fastify/middie#usage
For the dev web server, we should be able to just put an
await
here:quasar/app-vite/lib/modes/ssr/ssr-devserver.js
Line 317 in 36146ba
For the production web server, we should be able to move the create call and app interaction logic into
isReady
which is async.quasar/app-vite/templates/entry/ssr-prod-webserver.mjs
Lines 147 to 160 in 36146ba
The text was updated successfully, but these errors were encountered: