Skip to content

Commit

Permalink
deploy to firebase
Browse files Browse the repository at this point in the history
  • Loading branch information
rcannood committed Oct 22, 2024
1 parent ed6eeb6 commit 8f7c55f
Show file tree
Hide file tree
Showing 6 changed files with 1,394 additions and 26 deletions.
7 changes: 7 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"projects": {
"solid-project": "solid-project-18cb3"
},
"targets": {},
"etags": {}
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ dist
.netlify
.vinxi
app.config.timestamp_*.js
/.firebase
/firebase-*.log

# Environment
.env
Expand Down
11 changes: 10 additions & 1 deletion app.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
import { defineConfig } from "@solidjs/start/config";

export default defineConfig({});
export default defineConfig({
ssr: true,
server: {
preset: "firebase",
firebase: {
gen: 2,
nodeVersion: "20",
}
},
});
18 changes: 18 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"functions": {
"source": ".output/server"
},
"hosting": [
{
"site": "solid-project-18cb3",
"public": ".output/public",
"cleanUrls": true,
"rewrites": [
{
"source": "**",
"function": "server"
}
]
}
]
}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,8 @@
},
"engines": {
"node": ">=18"
},
"devDependencies": {
"firebase-functions": "^6.0.1"
}
}
Loading

0 comments on commit 8f7c55f

Please sign in to comment.