Slide 15
Slide 15 text
func%ons.h*ps.onRequest Ͱ ѲΔ
// next.js ͷྫ
const functions = require('firebase-functions')
const next = require('next')
const app = next({ dev: true, conf: { distDir: 'next' } })
const handle = app.getRequestHandler()
exports.server = functions.https.onRequest((req, res) => {
return app.prepare().then(() => handle(req, res))
})