Skip to content

Commit

Permalink
Fix with-firebase-hosting running locally (#21971)
Browse files Browse the repository at this point in the history
  • Loading branch information
maerzhase authored Feb 9, 2021
1 parent 74e0c6d commit fa8ab99
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
3 changes: 1 addition & 2 deletions examples/with-firebase-hosting/firebaseFunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ const { join } = require('path')
const { https } = require('firebase-functions')
const { default: next } = require('next')

const isDev = process.env.NODE_ENV !== 'production'
const nextjsDistDir = join('src', require('./src/next.config.js').distDir)

const nextjsServer = next({
dev: isDev,
dev: false,
conf: {
distDir: nextjsDistDir,
},
Expand Down
14 changes: 7 additions & 7 deletions examples/with-firebase-hosting/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
"logs": "firebase functions:log"
},
"dependencies": {
"firebase-admin": "^8.9.0",
"firebase-functions": "^3.3.0",
"next": "^9.3.4",
"react": "^16.13.1",
"react-dom": "^16.13.1"
"firebase-admin": "^9.4.2",
"firebase-functions": "^3.13.1",
"next": "latest",
"react": "^17.0.1",
"react-dom": "^17.0.1"
},
"devDependencies": {
"firebase-functions-test": "^0.1.6",
"firebase-tools": "^8.6.0"
"firebase-functions-test": "^0.2.3",
"firebase-tools": "^9.3.0"
},
"license": "MIT"
}

0 comments on commit fa8ab99

Please sign in to comment.