functions-samples
functions-samples copied to clipboard
nextjs-with-firebase-hosting sample appears to document a sub-optimal configuration
This sentence at the beginning of https://github.com/firebase/functions-samples/tree/master/nextjs-with-firebase-hosting is strange:
Host your SSR Next.js app on Cloud Functions with Firebase Hosting rewrite rules. Using a rewrite rule that catches ALL routes we can then host our SSR app on our Firebase Hosting URL instead of the Firebase Cloud Function URL.
This isn't what most people are going to want. You want to serve the static files that are generated by next.js from Firebase Hosting, and non-static files from a cloud function. A rewrite rule that catches all routes doesn't seem like a solution to using Firebase for next.js.
+1 / bump