mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
35d32b48cc
Adds an example based off of @jthegedus work on firebase hosting, compatible with next v6 and using typescript in both the firebase functions and the next app.
39 lines
1.3 KiB
JSON
39 lines
1.3 KiB
JSON
{
|
|
"name": "with-firebase-hosting",
|
|
"version": "1.0.0",
|
|
"description": "Host Next.js SSR app on Firebase Cloud Functions with Firebase Hosting redirects.",
|
|
"scripts": {
|
|
"dev": "next src/app",
|
|
"serve": "NODE_ENV=production firebase serve --only functions,hosting",
|
|
"deploy": "firebase deploy",
|
|
"clean": "rimraf \"dist/functions\" && rimraf \"dist/public\"",
|
|
"build-app": "next build \"src/app\"",
|
|
"build-public": "cpx \"src/public/**/*.*\" \"dist/public\" -C",
|
|
"build-functions": "tsc --project src/functions",
|
|
"lint-app": "tslint --project src/app",
|
|
"typecheck-app": "tsc --project src/app",
|
|
"lint-functions": "tslint --project src/functions",
|
|
"copy-deps": "cpx \"*{package.json,package-lock.json,yarn.lock}\" \"dist/functions\"",
|
|
"install-deps": "cd \"dist/functions\" && npm i"
|
|
},
|
|
"dependencies": {
|
|
"@zeit/next-typescript": "^1.0.0",
|
|
"firebase-admin": "~5.12.1",
|
|
"firebase-functions": "^1.0.1",
|
|
"next": "^6.0.3",
|
|
"react": "^16.3.2",
|
|
"react-dom": "^16.3.2"
|
|
},
|
|
"devDependencies": {
|
|
"@types/next": "^2.4.10",
|
|
"@types/react": "^16.3.14",
|
|
"cpx": "1.5.0",
|
|
"firebase-tools": "3.18.4",
|
|
"prettier": "1.12.1",
|
|
"rimraf": "2.6.2",
|
|
"tslint": "^5.8.0",
|
|
"tslint-react": "3.6.0",
|
|
"typescript": "^2.5.3"
|
|
}
|
|
}
|