Skip to content

Commit

Permalink
refactor: initial deployment setup for firebase hosting
Browse files Browse the repository at this point in the history
  • Loading branch information
YUUU23 committed Jun 22, 2024
1 parent eb172bd commit 88fe844
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "ccv-honeycomb-docs"
}
}
7 changes: 5 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = {
tagline:
"A template for reproducible psychophysiological tasks for clinic, laboratory, and home use.",
url: "https://brown-ccv.github.io",
baseUrl: "/honeycomb-docs/",
baseUrl: "/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "img/bee.svg",
Expand Down Expand Up @@ -103,7 +103,10 @@ module.exports = {
{
className: "code-block-delete-line",
line: "highlight-delete-next-line",
block: { start: "highlight-delete-start", end: "highlight-delete-end" },
block: {
start: "highlight-delete-start",
end: "highlight-delete-end",
},
},
],
},
Expand Down
18 changes: 18 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"hosting": {
"public": "build",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
],
"headers": [
{
"source": "/service-worker.js",
"headers": [{ "key": "Cache-Control", "value": "no-cache" }]
}
]
}
}

0 comments on commit 88fe844

Please sign in to comment.