Skip to content

Instantly share code, notes, and snippets.

@jthegedus
Last active October 28, 2018 07:35
Show Gist options
  • Save jthegedus/c24981c3eb5c46d82075e94cb3689ee2 to your computer and use it in GitHub Desktop.
Save jthegedus/c24981c3eb5c46d82075e94cb3689ee2 to your computer and use it in GitHub Desktop.
Cloud Functions for Firebase - NextJS example
{
"name": "nextonfirebase",
"version": "1.0.0",
"license": "MIT",
"scripts": {
"install": "yarn build-all",
"next": "yarn build-firebase && cd \"src/app\" && yarn && yarn dev",
"preserve": "yarn build-all",
"serve": "firebase serve",
"predeploy": "yarn build-all",
"deploy": "firebase deploy",
"build-all": "yarn build-next && yarn build-firebase",
"build-next": "cd \"src/app\" && yarn && yarn build",
"build-firebase": "cd \"src/functions\" && yarn"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment