This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"functions": { | |
"predeploy": "yarn clean && yarn build:app && yarn build:functions && yarn copy:deps && yarn copy:pages", | |
"source": "dist/functions" | |
}, | |
"hosting": { | |
"predeploy": "yarn copy:next && yarn copy:static", | |
"public": "dist/public", | |
"rewrites": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": { | |
"dev": "next src/app", | |
"clean": "rimraf dist", | |
"build:app": "next build src/app", | |
"build:functions": "cpx \"src/functions/**/*.*\" dist/functions", | |
"copy:static": "cpx \"src/app/static/**/*.*\" dist/public/static", | |
"copy:next": "cpx \"dist/next/static/**/*.*\" dist/public/_next/static", | |
"copy:deps": "cpx \"*{package.json,package-lock.json}\" dist/functions", | |
"copy:pages": "cpx \"dist/next/serverless/pages/**/*.*\" dist/functions/pages" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"presets": [["next/babel"]], | |
"plugins": [ | |
[ | |
"styled-components", | |
{ | |
"ssr": true, | |
"displayName": true, | |
"preprocess": false | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const onRequest = require("firebase-functions").https.onRequest; | |
const index = require("./pages/index"); | |
exports.index = onRequest((req, res) => index.render(req, res)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"functions": { | |
"predeploy": "yarn clean && yarn build:app && yarn build:functions && yarn copy:deps && yarn copy:pages", | |
"source": "dist/functions" | |
}, | |
"hosting": { | |
"predeploy": "yarn copy:next && yarn copy:static", | |
"public": "dist/public", | |
"rewrites": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"projects": { | |
"production": "<YOUR_PROJECT_ID>" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"license": "MIT", | |
"name": "next-firebase-functions", | |
"version": "1.0.0", | |
"author": "Hüseyin Atakan Çiçek", | |
"repository": "https://github.com/hatakancicek/next-firebase-functions", | |
"engines": { | |
"node": "10" | |
}, | |
"dependencies": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ... | |
"scripts": { | |
"copy:deps": "cpx \"*{package.json,package-lock.json}\" dist/functions" | |
} | |
// ... |