Usage of firebase function & ssr mode #9411
Replies: 5 comments 3 replies
-
I'm also running into issues when trying to deploy ssr express to firebase. I suspect it has something to do with the new Not only that, the output ssr index.js is now compressed so it makes debugging harder. I'm sure there's a way to opt out of compressing that file, but I'm not sure how. |
Beta Was this translation helpful? Give feedback.
-
@rstoenescu Does your recent commit also resolve this one? 5f813ee |
Beta Was this translation helpful? Give feedback.
-
Issue confirmed my side. Before with Quasar v2 SSR : const functions = require("firebase-functions");
const runtimeOpts = {
timeoutSeconds: 540,
memory: "1GB"
};
exports.mywebsite = functions
.region("us-central1")
.runWith(runtimeOpts)
.https.onRequest(app); Now with Quasar v3 SSR : import * as functions from "firebase-functions";
import { ssrProductionExport } from "quasar/wrappers";
// Define API
const runtimeOpts = {
timeoutSeconds: 540,
memory: "1GB",
};
export default ssrProductionExport(({ ssrHandler }) => {
return {
mywebsite: functions
.region("us-central1")
.runWith(runtimeOpts)
.https.onRequest(ssrHandler),
};
}); Any advise? |
Beta Was this translation helpful? Give feedback.
-
Hi, i'm looking for a real method to use SSR with firebase too. Stack: Quasar CLI with Vue |
Beta Was this translation helpful? Give feedback.
-
For me the Firebase example in the docs didn't work at all for me, I had to turn extendPackageJson (pkg) {
pkg.engines.node = '18'
} |
Beta Was this translation helpful? Give feedback.
-
How can deploy quasar v2 ssr application into firebase-functions?
In v1, it can be done by following step:
First, I insert code at bottom in src-ssr/index.js file:
const functions=require("firebase-functions"); exports.samplefun=functions.https.onRequest(app);
But in new version, there are no file "index.js" in src-ssr directory.
Please help me to resolve the problem.
Beta Was this translation helpful? Give feedback.
All reactions