-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into bugfix/responsiveness-bug
- Loading branch information
Showing
10 changed files
with
148 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,12 @@ | ||
VITE_WARD_API_BASE_URL=https://wardanalyticsapi.com | ||
VITE_WARD_API_KEY= | ||
VITE_WARD_API_KEY= | ||
|
||
# Firebase config | ||
VITE_FIREBASE_API_KEY= | ||
VITE_FIREBASE_AUTH_DOMAIN= | ||
VITE_FIREBASE_PROJECT_ID= | ||
VITE_FIREBASE_STORAGE_BUCKET= | ||
VITE_FIREBASE_MESSAGING_SENDER_ID= | ||
VITE_FIREBASE_APP_ID= | ||
# For Google Analytics | ||
VITE_FIREBASE_MEASUREMENT_ID= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Configuration for deploying to production on merge to development | ||
# For more information, see https://github.com/marketplace/actions/deploy-to-firebase-hosting#options | ||
|
||
name: Deploy to Firebase Dev Hosting on merge | ||
"on": | ||
push: | ||
branches: | ||
- development | ||
|
||
env: | ||
VITE_WARD_API_BASE_URL: "https://wardanalyticsapi.com" | ||
VITE_WARD_API_KEY: ${{ secrets.WARD_API_KEY }} | ||
VITE_FIREBASE_API_KEY: "AIzaSyBZCnEQus6G42SodGNRf6o2zmBnGN0nXes" | ||
VITE_FIREBASE_AUTH_DOMAIN: "graphapp-dev.firebaseapp.com" | ||
VITE_FIREBASE_PROJECT_ID: "graphapp-dev" | ||
VITE_FIREBASE_STORAGE_BUCKET: "graphapp-dev.appspot.com" | ||
VITE_FIREBASE_MESSAGING_SENDER_ID: "897485812844" | ||
VITE_FIREBASE_APP_ID: "1:897485812844:web:039de3b976c1559fded449" | ||
# For Google Analytics | ||
VITE_FIREBASE_MEASUREMENT_ID: "G-V2S9JPMH7S" | ||
|
||
jobs: | ||
build_and_deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: yarn install && yarn build | ||
- uses: FirebaseExtended/action-hosting-deploy@v0 | ||
with: | ||
repoToken: "${{ secrets.GITHUB_TOKEN }}" | ||
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_GRAPHAPP_DEV }}" | ||
channelId: live | ||
projectId: graphapp-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"hosting": { | ||
"public": "build", | ||
"ignore": [ | ||
"firebase.json", | ||
"**/.*", | ||
"**/node_modules/**" | ||
], | ||
"rewrites": [ | ||
{ | ||
"source": "**", | ||
"destination": "/index.html" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Import the functions you need from the SDKs you need | ||
import { Analytics, getAnalytics } from "firebase/analytics"; | ||
import { FirebaseApp, initializeApp } from "firebase/app"; | ||
|
||
const { | ||
VITE_FIREBASE_API_KEY: apiKey, | ||
VITE_FIREBASE_AUTH_DOMAIN: authDomain, | ||
VITE_FIREBASE_PROJECT_ID: projectId, | ||
VITE_FIREBASE_STORAGE_BUCKET: storageBucket, | ||
VITE_FIREBASE_MESSAGING_SENDER_ID: messagingSenderId, | ||
VITE_FIREBASE_APP_ID: appId, | ||
VITE_FIREBASE_MEASUREMENT_ID: measurementId, | ||
} = import.meta.env; | ||
|
||
const firebaseConfig = { | ||
apiKey: apiKey, | ||
authDomain: authDomain, | ||
projectId: projectId, | ||
storageBucket: storageBucket, | ||
messagingSenderId: messagingSenderId, | ||
appId: appId, | ||
measurementId: measurementId, | ||
}; | ||
|
||
// Initialize Firebase | ||
const app: FirebaseApp = initializeApp(firebaseConfig); | ||
const analytics: Analytics = getAnalytics(app); | ||
|
||
export default { | ||
app, | ||
analytics, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3007,7 +3007,7 @@ [email protected], find-up@^5.0.0: | |
|
||
firebase@^10.7.1: | ||
version "10.7.1" | ||
resolved "https://registry.npmjs.org/firebase/-/firebase-10.7.1.tgz" | ||
resolved "https://registry.yarnpkg.com/firebase/-/firebase-10.7.1.tgz#71fa17a10146f388746ecc216a3e1e477a7bf9b5" | ||
integrity sha512-Mlt7y7zQ43FtKp4SCyYie3tnrOL3UMF2XXiV4ZXMrC0d0wtcOYmABuybhkJpJCKILpdekxr39wjnaai0DZlWFg== | ||
dependencies: | ||
"@firebase/analytics" "0.10.0" | ||
|