Skip to content

Commit

Permalink
build: Initialize firebase.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZL-Asica committed Nov 16, 2024
1 parent 1100021 commit 2516607
Show file tree
Hide file tree
Showing 7 changed files with 294 additions and 278 deletions.
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "openhands"
}
}
6 changes: 5 additions & 1 deletion firebase.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"hosting": {
"public": "dist",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"]
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
]
}
}
4 changes: 4 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
name="viewport"
content="width=device-width, initial-scale=1.0"
/>
<meta
name="robots"
content="noindex, nofollow, noarchive"
/>
<title>OpenHands</title>
</head>
<body>
Expand Down
538 changes: 269 additions & 269 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@fontsource/roboto": "^5.1.0",
"@mui/icons-material": "^6.1.6",
"@mui/material": "^6.1.6",
"firebase": "^11.0.1",
"firebase": "^11.0.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.27.0"
Expand Down
3 changes: 3 additions & 0 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
14 changes: 7 additions & 7 deletions src/utils/firebaseConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import { initializeFirestore } from 'firebase/firestore';
// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
const firebaseConfig = {
apiKey: 'a',
authDomain: 'a',
projectId: 'a',
storageBucket: 'a',
messagingSenderId: 'a',
appId: 'a',
measurementId: 'a',
apiKey: 'AIzaSyCfG-2C0048aiN_4r_i4kuhl30Emn4V2h4',
authDomain: 'openhands-48a60.firebaseapp.com',
projectId: 'openhands-48a60',
storageBucket: 'openhands-48a60.firebasestorage.app',
messagingSenderId: '772096397388',
appId: '1:772096397388:web:5550007864b0df426ea4e9',
measurementId: 'G-6JHHGK385Z',
};

// Initialize Firebase
Expand Down

0 comments on commit 2516607

Please sign in to comment.