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.
25 lines
496 B
JSON
25 lines
496 B
JSON
{
|
|
"functions": {
|
|
"source": "dist/functions",
|
|
"predeploy": [
|
|
"npm run lint-functions",
|
|
"npm run lint-app",
|
|
"npm run typecheck-app",
|
|
"npm run build-functions",
|
|
"npm run build-app",
|
|
"npm run copy-deps",
|
|
"npm run install-deps"
|
|
]
|
|
},
|
|
"hosting": {
|
|
"public": "dist/public",
|
|
"rewrites": [
|
|
{
|
|
"source": "**/**",
|
|
"function": "nextApp"
|
|
}
|
|
],
|
|
"predeploy": "npm run build-public"
|
|
}
|
|
}
|