functions-samples icon indicating copy to clipboard operation
functions-samples copied to clipboard

nextjs-with-firebase-hosting sample appears to document a sub-optimal configuration

Open banshee opened this issue 4 years ago • 1 comments

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.

banshee avatar Sep 12 '20 00:09 banshee

+1 / bump

devth avatar Feb 09 '21 04:02 devth