Skip to content

Instantly share code, notes, and snippets.

@jthegedus
Created May 25, 2020 03:02
Show Gist options
  • Save jthegedus/1c662b854aa4b4370395b1f9bd4fc13e to your computer and use it in GitHub Desktop.
Save jthegedus/1c662b854aa4b4370395b1f9bd4fc13e to your computer and use it in GitHub Desktop.
github.com/jthegedus/firebase-gcp-examples/tree/master/functions-nextjs
┌ components/ <-- React Components
| └ ...
├ helpers/
| └ utils.js <-- Firestore data to JSON helper
├ nextjs/ <-- Next.js distribution directory
| └ ... configured in next.config.js
├ out/ <-- public/ + hoisted nextjs/ static content
| └ ...
├ pages/ <-- Next.js Pages
| └ ...
├ public/ <-- Static assets
| └ ...
├ scripts/
| └ export.js <-- Special-sauce static hoisting script
├ .gitignore
├ firebase.json
├ firestore.rules
├ next.config.js <-- Next.js configuration
├ package-lock.json
├ package.json
└ server.js <-- HTTPS Cloud Function for our Next.js Server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment