From ebbc24715f35320587199dadc340f163edcec6cb Mon Sep 17 00:00:00 2001 From: yungblud Date: Sun, 29 Dec 2024 21:02:06 +0900 Subject: [PATCH 1/4] feat(surf-tree): :art: installed firebase --- apps/coldsurf-io/package.json | 2 +- apps/surf-tree/package.json | 1 + package.json | 3 +- yarn.lock | 575 +--------------------------------- 4 files changed, 7 insertions(+), 574 deletions(-) diff --git a/apps/coldsurf-io/package.json b/apps/coldsurf-io/package.json index fbdfc927..7d22631b 100644 --- a/apps/coldsurf-io/package.json +++ b/apps/coldsurf-io/package.json @@ -13,7 +13,7 @@ "@emotion/css": "*", "@emotion/react": "*", "@emotion/styled": "*", - "firebase": "^11.1.0", + "firebase": "*", "framer-motion": "*", "lucide-react": "*", "next": "15.1.2", diff --git a/apps/surf-tree/package.json b/apps/surf-tree/package.json index e3241250..0f0be5cd 100644 --- a/apps/surf-tree/package.json +++ b/apps/surf-tree/package.json @@ -14,6 +14,7 @@ "@emotion/react": "*", "@emotion/styled": "*", "cheerio": "^1.0.0", + "firebase": "*", "framer-motion": "*", "lucide-react": "*", "next": "15.1.0", diff --git a/package.json b/package.json index eea6a159..ad256f2a 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,8 @@ "serverless-plugin-monorepo": "0.11.0", "sst": "3.4.28", "lucide-react": "0.469.0", - "react-lite-youtube-embed": "2.4.0" + "react-lite-youtube-embed": "2.4.0", + "firebase": "11.1.0" }, "devDependencies": { "@tanstack/eslint-plugin-query": "^5.12.1", diff --git a/yarn.lock b/yarn.lock index 6f79c342..5af4efb8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3642,7 +3642,7 @@ __metadata: "@types/react-dom": "npm:^19" eslint: "npm:^9" eslint-config-next: "npm:15.1.2" - firebase: "npm:^11.1.0" + firebase: "npm:*" framer-motion: "npm:*" lucide-react: "npm:*" next: "npm:15.1.2" @@ -3874,6 +3874,7 @@ __metadata: cheerio: "npm:^1.0.0" eslint: "npm:^9" eslint-config-next: "npm:15.1.0" + firebase: "npm:*" framer-motion: "npm:*" lucide-react: "npm:*" next: "npm:15.1.0" @@ -5123,21 +5124,6 @@ __metadata: languageName: node linkType: hard -"@firebase/analytics-compat@npm:0.2.14": - version: 0.2.14 - resolution: "@firebase/analytics-compat@npm:0.2.14" - dependencies: - "@firebase/analytics": "npm:0.10.8" - "@firebase/analytics-types": "npm:0.8.2" - "@firebase/component": "npm:0.6.9" - "@firebase/util": "npm:1.10.0" - tslib: "npm:^2.1.0" - peerDependencies: - "@firebase/app-compat": 0.x - checksum: 10c0/d63982fb8d423968b61240f00771fd96858b269f11ccbdd05887c1d1c03356df4aff854070fad2934b49819a4a78ec0b1f81eddec1e341f0e3f78127f9d1d646 - languageName: node - linkType: hard - "@firebase/analytics-compat@npm:0.2.16": version: 0.2.16 resolution: "@firebase/analytics-compat@npm:0.2.16" @@ -5153,13 +5139,6 @@ __metadata: languageName: node linkType: hard -"@firebase/analytics-types@npm:0.8.2": - version: 0.8.2 - resolution: "@firebase/analytics-types@npm:0.8.2" - checksum: 10c0/0345beed0e36637c3e3f5c0638478fbd0d165d197a0374dd848c4bb772298b1eb3f3bccfea1f4501e32ee9a4ae8ac1c30bf399645f60037b2b08f4b5e252ec78 - languageName: node - linkType: hard - "@firebase/analytics-types@npm:0.8.3": version: 0.8.3 resolution: "@firebase/analytics-types@npm:0.8.3" @@ -5182,37 +5161,6 @@ __metadata: languageName: node linkType: hard -"@firebase/analytics@npm:0.10.8": - version: 0.10.8 - resolution: "@firebase/analytics@npm:0.10.8" - dependencies: - "@firebase/component": "npm:0.6.9" - "@firebase/installations": "npm:0.6.9" - "@firebase/logger": "npm:0.4.2" - "@firebase/util": "npm:1.10.0" - tslib: "npm:^2.1.0" - peerDependencies: - "@firebase/app": 0.x - checksum: 10c0/0ad50a59a2e8aa4f7a3a297081e0e6ec5b78b4180f7c28822d1a722ce70a8274190089104b62febae9dbfa9bd2f17e7c22e6417d5ef9b0319ce4dcc3d6f18946 - languageName: node - linkType: hard - -"@firebase/app-check-compat@npm:0.3.15": - version: 0.3.15 - resolution: "@firebase/app-check-compat@npm:0.3.15" - dependencies: - "@firebase/app-check": "npm:0.8.8" - "@firebase/app-check-types": "npm:0.5.2" - "@firebase/component": "npm:0.6.9" - "@firebase/logger": "npm:0.4.2" - "@firebase/util": "npm:1.10.0" - tslib: "npm:^2.1.0" - peerDependencies: - "@firebase/app-compat": 0.x - checksum: 10c0/590b7af980c9efd852c671a232fed666e4502e13754e85ad58a85a4651882486089cb5d8b4bb6be79bb648d3b66524b71965565a68f2757e2cbd93daf37b4bcf - languageName: node - linkType: hard - "@firebase/app-check-compat@npm:0.3.17": version: 0.3.17 resolution: "@firebase/app-check-compat@npm:0.3.17" @@ -5229,13 +5177,6 @@ __metadata: languageName: node linkType: hard -"@firebase/app-check-interop-types@npm:0.3.2": - version: 0.3.2 - resolution: "@firebase/app-check-interop-types@npm:0.3.2" - checksum: 10c0/7f1d25bc6cef3e4a209e6db096f6088b132b80f59947026af269406bdfbf140f391aeb94e68ecb4f524b4382b7217cc500cc068eeaf834e9665b7793177cc3f8 - languageName: node - linkType: hard - "@firebase/app-check-interop-types@npm:0.3.3": version: 0.3.3 resolution: "@firebase/app-check-interop-types@npm:0.3.3" @@ -5243,13 +5184,6 @@ __metadata: languageName: node linkType: hard -"@firebase/app-check-types@npm:0.5.2": - version: 0.5.2 - resolution: "@firebase/app-check-types@npm:0.5.2" - checksum: 10c0/0e1e3c89da6591c608647faefd49add3aed8a3d5af061c6f4d192fa52cd48a9c511df3dfda96eac5cf18fde2661361bb26a18c9c346b300f71ffa743a85aeb68 - languageName: node - linkType: hard - "@firebase/app-check-types@npm:0.5.3": version: 0.5.3 resolution: "@firebase/app-check-types@npm:0.5.3" @@ -5271,33 +5205,6 @@ __metadata: languageName: node linkType: hard -"@firebase/app-check@npm:0.8.8": - version: 0.8.8 - resolution: "@firebase/app-check@npm:0.8.8" - dependencies: - "@firebase/component": "npm:0.6.9" - "@firebase/logger": "npm:0.4.2" - "@firebase/util": "npm:1.10.0" - tslib: "npm:^2.1.0" - peerDependencies: - "@firebase/app": 0.x - checksum: 10c0/1d083e4b8cefc04a068ec5996c201fa2179e4315142a832c777558e6d44fa224d67cdbd9ac90086cca2c222fa6316168fa15c720b81672bafa2d722e48e1035a - languageName: node - linkType: hard - -"@firebase/app-compat@npm:0.2.41": - version: 0.2.41 - resolution: "@firebase/app-compat@npm:0.2.41" - dependencies: - "@firebase/app": "npm:0.10.11" - "@firebase/component": "npm:0.6.9" - "@firebase/logger": "npm:0.4.2" - "@firebase/util": "npm:1.10.0" - tslib: "npm:^2.1.0" - checksum: 10c0/9873ebc40871182e2ca4948aeef99c56b592c14e3a3c242239a781ec8e5fdefe7dbc50cf73a9733ed6aed778aa8e9bbd8cd631b8f31a1493e24648fd30fdf329 - languageName: node - linkType: hard - "@firebase/app-compat@npm:0.2.47": version: 0.2.47 resolution: "@firebase/app-compat@npm:0.2.47" @@ -5311,13 +5218,6 @@ __metadata: languageName: node linkType: hard -"@firebase/app-types@npm:0.9.2": - version: 0.9.2 - resolution: "@firebase/app-types@npm:0.9.2" - checksum: 10c0/6bc78395ecadbf4958f1300ce9eb1d80522f05531acbacd88220fb77f4b924355bc920afe7f09c29acc40f374380e36539647604e1dab2fea045622b24988441 - languageName: node - linkType: hard - "@firebase/app-types@npm:0.9.3": version: 0.9.3 resolution: "@firebase/app-types@npm:0.9.3" @@ -5325,19 +5225,6 @@ __metadata: languageName: node linkType: hard -"@firebase/app@npm:0.10.11": - version: 0.10.11 - resolution: "@firebase/app@npm:0.10.11" - dependencies: - "@firebase/component": "npm:0.6.9" - "@firebase/logger": "npm:0.4.2" - "@firebase/util": "npm:1.10.0" - idb: "npm:7.1.1" - tslib: "npm:^2.1.0" - checksum: 10c0/217516e7fb5f64fd8fc4932944a6c1e7fb10bc8dbc05f93787539b25174ea75cfbd3a0b5e820ac57f5536c70f12da55ae680d98089c54ad9ba792f158a00c353 - languageName: node - linkType: hard - "@firebase/app@npm:0.10.17": version: 0.10.17 resolution: "@firebase/app@npm:0.10.17" @@ -5351,22 +5238,6 @@ __metadata: languageName: node linkType: hard -"@firebase/auth-compat@npm:0.5.14": - version: 0.5.14 - resolution: "@firebase/auth-compat@npm:0.5.14" - dependencies: - "@firebase/auth": "npm:1.7.9" - "@firebase/auth-types": "npm:0.12.2" - "@firebase/component": "npm:0.6.9" - "@firebase/util": "npm:1.10.0" - tslib: "npm:^2.1.0" - undici: "npm:6.19.7" - peerDependencies: - "@firebase/app-compat": 0.x - checksum: 10c0/09fdd896fd39b34a7364ac2a75979ba99091afda9472730ff4911c84382d7b719b5ee8b26c92cca80a7b2aa60dc26fe0dfb46423c961552b5fc660a01ef1e465 - languageName: node - linkType: hard - "@firebase/auth-compat@npm:0.5.16": version: 0.5.16 resolution: "@firebase/auth-compat@npm:0.5.16" @@ -5382,13 +5253,6 @@ __metadata: languageName: node linkType: hard -"@firebase/auth-interop-types@npm:0.2.3": - version: 0.2.3 - resolution: "@firebase/auth-interop-types@npm:0.2.3" - checksum: 10c0/a3e72134a5ba177c87e2a35064f88ec6e9272f582c0754664edaabf23e2dcc1e8f9b70f78521c128d20c8ed060e857f333a9c6d5b463e6612bddef01b070da06 - languageName: node - linkType: hard - "@firebase/auth-interop-types@npm:0.2.4": version: 0.2.4 resolution: "@firebase/auth-interop-types@npm:0.2.4" @@ -5396,16 +5260,6 @@ __metadata: languageName: node linkType: hard -"@firebase/auth-types@npm:0.12.2": - version: 0.12.2 - resolution: "@firebase/auth-types@npm:0.12.2" - peerDependencies: - "@firebase/app-types": 0.x - "@firebase/util": 1.x - checksum: 10c0/daf3d785cf7c3bb0fde7a92781f11419f7543980e28ad24eebba61ee448ca9858cdd7cbab91d9c4dcc0b7c21708b72dca45fef49f45af715f7ddfe8d545fafbd - languageName: node - linkType: hard - "@firebase/auth-types@npm:0.12.3": version: 0.12.3 resolution: "@firebase/auth-types@npm:0.12.3" @@ -5416,25 +5270,6 @@ __metadata: languageName: node linkType: hard -"@firebase/auth@npm:1.7.9": - version: 1.7.9 - resolution: "@firebase/auth@npm:1.7.9" - dependencies: - "@firebase/component": "npm:0.6.9" - "@firebase/logger": "npm:0.4.2" - "@firebase/util": "npm:1.10.0" - tslib: "npm:^2.1.0" - undici: "npm:6.19.7" - peerDependencies: - "@firebase/app": 0.x - "@react-native-async-storage/async-storage": ^1.18.1 - peerDependenciesMeta: - "@react-native-async-storage/async-storage": - optional: true - checksum: 10c0/dab94919c8f695b6915b509b87bd36d97a739feb905c353779a2b7798745c391e4284d856e3682f10ee9f2953b0cacefcb682b36b02cc8857debb169abae8e61 - languageName: node - linkType: hard - "@firebase/auth@npm:1.8.1": version: 1.8.1 resolution: "@firebase/auth@npm:1.8.1" @@ -5463,16 +5298,6 @@ __metadata: languageName: node linkType: hard -"@firebase/component@npm:0.6.9": - version: 0.6.9 - resolution: "@firebase/component@npm:0.6.9" - dependencies: - "@firebase/util": "npm:1.10.0" - tslib: "npm:^2.1.0" - checksum: 10c0/609dd193000dd9bdd12d820fbf2653d693e9aa2f768aa7817573e4f349b83ae4aa3b80ccd13b5cde4fb6bdf924a283a33ba0b608896bf6112db9265607202d28 - languageName: node - linkType: hard - "@firebase/data-connect@npm:0.1.3": version: 0.1.3 resolution: "@firebase/data-connect@npm:0.1.3" @@ -5488,20 +5313,6 @@ __metadata: languageName: node linkType: hard -"@firebase/database-compat@npm:1.0.8": - version: 1.0.8 - resolution: "@firebase/database-compat@npm:1.0.8" - dependencies: - "@firebase/component": "npm:0.6.9" - "@firebase/database": "npm:1.0.8" - "@firebase/database-types": "npm:1.0.5" - "@firebase/logger": "npm:0.4.2" - "@firebase/util": "npm:1.10.0" - tslib: "npm:^2.1.0" - checksum: 10c0/34456da205dc0376601cef43ac1eb22b9bddac0555ccde14d759e0737b041bad6b996335f824543e4d782e9440893ae9c09e28be2c26c6afc6dbbfedd2c3eb84 - languageName: node - linkType: hard - "@firebase/database-compat@npm:2.0.1, @firebase/database-compat@npm:^2.0.0": version: 2.0.1 resolution: "@firebase/database-compat@npm:2.0.1" @@ -5516,16 +5327,6 @@ __metadata: languageName: node linkType: hard -"@firebase/database-types@npm:1.0.5": - version: 1.0.5 - resolution: "@firebase/database-types@npm:1.0.5" - dependencies: - "@firebase/app-types": "npm:0.9.2" - "@firebase/util": "npm:1.10.0" - checksum: 10c0/64067fd5f11117898ec499bd63b04e13e0a3ef08c82d10873c112ef86be503152d0848f996d6f3f178392a141f20206d7cadb8e3163fd7ffaf7221c132d0f7a2 - languageName: node - linkType: hard - "@firebase/database-types@npm:1.0.7, @firebase/database-types@npm:^1.0.6": version: 1.0.7 resolution: "@firebase/database-types@npm:1.0.7" @@ -5551,36 +5352,6 @@ __metadata: languageName: node linkType: hard -"@firebase/database@npm:1.0.8": - version: 1.0.8 - resolution: "@firebase/database@npm:1.0.8" - dependencies: - "@firebase/app-check-interop-types": "npm:0.3.2" - "@firebase/auth-interop-types": "npm:0.2.3" - "@firebase/component": "npm:0.6.9" - "@firebase/logger": "npm:0.4.2" - "@firebase/util": "npm:1.10.0" - faye-websocket: "npm:0.11.4" - tslib: "npm:^2.1.0" - checksum: 10c0/dac0f0d1836cdd1ccc4785bdf35a1cc35a00d35c5c3d21dd87afccd1873f10ed56a606c72de07dbc93600115cd5a94686fbcf169e34ee9ae19a184469c110810 - languageName: node - linkType: hard - -"@firebase/firestore-compat@npm:0.3.37": - version: 0.3.37 - resolution: "@firebase/firestore-compat@npm:0.3.37" - dependencies: - "@firebase/component": "npm:0.6.9" - "@firebase/firestore": "npm:4.7.2" - "@firebase/firestore-types": "npm:3.0.2" - "@firebase/util": "npm:1.10.0" - tslib: "npm:^2.1.0" - peerDependencies: - "@firebase/app-compat": 0.x - checksum: 10c0/3b4250074ea55080b7733597119abe1dab46e030a742915bc4f4267a3ad20309cb5445d827e0ce71d0adef2055ac0878540910e66b36b69083028190f664eb51 - languageName: node - linkType: hard - "@firebase/firestore-compat@npm:0.3.40": version: 0.3.40 resolution: "@firebase/firestore-compat@npm:0.3.40" @@ -5596,16 +5367,6 @@ __metadata: languageName: node linkType: hard -"@firebase/firestore-types@npm:3.0.2": - version: 3.0.2 - resolution: "@firebase/firestore-types@npm:3.0.2" - peerDependencies: - "@firebase/app-types": 0.x - "@firebase/util": 1.x - checksum: 10c0/3f8d97894d6bbef7a15ec5a33b241ddbb6ee90c3316c13f2a38fe5b8333e6b842197b498ec7d597ecd52ba4d5253ee96fcc6c889e9b394156200950577bbbded - languageName: node - linkType: hard - "@firebase/firestore-types@npm:3.0.3": version: 3.0.3 resolution: "@firebase/firestore-types@npm:3.0.3" @@ -5616,24 +5377,6 @@ __metadata: languageName: node linkType: hard -"@firebase/firestore@npm:4.7.2": - version: 4.7.2 - resolution: "@firebase/firestore@npm:4.7.2" - dependencies: - "@firebase/component": "npm:0.6.9" - "@firebase/logger": "npm:0.4.2" - "@firebase/util": "npm:1.10.0" - "@firebase/webchannel-wrapper": "npm:1.0.1" - "@grpc/grpc-js": "npm:~1.9.0" - "@grpc/proto-loader": "npm:^0.7.8" - tslib: "npm:^2.1.0" - undici: "npm:6.19.7" - peerDependencies: - "@firebase/app": 0.x - checksum: 10c0/59e35106cc8db1d8f2ebe61a794b3bb9c49db2b577ce72fda3595020b27167d11611c7fe28a5c8d3cf7cfb2dab8e26607194898979ae31b219e214a81fcada9c - languageName: node - linkType: hard - "@firebase/firestore@npm:4.7.5": version: 4.7.5 resolution: "@firebase/firestore@npm:4.7.5" @@ -5651,21 +5394,6 @@ __metadata: languageName: node linkType: hard -"@firebase/functions-compat@npm:0.3.14": - version: 0.3.14 - resolution: "@firebase/functions-compat@npm:0.3.14" - dependencies: - "@firebase/component": "npm:0.6.9" - "@firebase/functions": "npm:0.11.8" - "@firebase/functions-types": "npm:0.6.2" - "@firebase/util": "npm:1.10.0" - tslib: "npm:^2.1.0" - peerDependencies: - "@firebase/app-compat": 0.x - checksum: 10c0/1e2626fbf7d1d79ea4e9bf6f3b29803116e10498b1fd0334da6a8d4a47fd339b7e10db83aecf6b633e4c37ed08f43c5a1645f2679a67c0906143fef68c4180bb - languageName: node - linkType: hard - "@firebase/functions-compat@npm:0.3.17": version: 0.3.17 resolution: "@firebase/functions-compat@npm:0.3.17" @@ -5681,13 +5409,6 @@ __metadata: languageName: node linkType: hard -"@firebase/functions-types@npm:0.6.2": - version: 0.6.2 - resolution: "@firebase/functions-types@npm:0.6.2" - checksum: 10c0/36ea0b30f4cd8d28fc574870780439642048d25bbed289f37f2567f7d93bac80dc19d03e5e7131e879f1f354f6ad7f6cf70188edaf6dbe005b98403e50224054 - languageName: node - linkType: hard - "@firebase/functions-types@npm:0.6.3": version: 0.6.3 resolution: "@firebase/functions-types@npm:0.6.3" @@ -5695,23 +5416,6 @@ __metadata: languageName: node linkType: hard -"@firebase/functions@npm:0.11.8": - version: 0.11.8 - resolution: "@firebase/functions@npm:0.11.8" - dependencies: - "@firebase/app-check-interop-types": "npm:0.3.2" - "@firebase/auth-interop-types": "npm:0.2.3" - "@firebase/component": "npm:0.6.9" - "@firebase/messaging-interop-types": "npm:0.2.2" - "@firebase/util": "npm:1.10.0" - tslib: "npm:^2.1.0" - undici: "npm:6.19.7" - peerDependencies: - "@firebase/app": 0.x - checksum: 10c0/4e6eadb2a94b6fd2ed208fcc8dc29810b660a8834641bb9990d8010859ac2f5cfe8ff32f6b2616ab26012d017a7a70a49bc6c1a1c4992c4f6a0f1a956ca4b8b5 - languageName: node - linkType: hard - "@firebase/functions@npm:0.12.0": version: 0.12.0 resolution: "@firebase/functions@npm:0.12.0" @@ -5743,30 +5447,6 @@ __metadata: languageName: node linkType: hard -"@firebase/installations-compat@npm:0.2.9": - version: 0.2.9 - resolution: "@firebase/installations-compat@npm:0.2.9" - dependencies: - "@firebase/component": "npm:0.6.9" - "@firebase/installations": "npm:0.6.9" - "@firebase/installations-types": "npm:0.5.2" - "@firebase/util": "npm:1.10.0" - tslib: "npm:^2.1.0" - peerDependencies: - "@firebase/app-compat": 0.x - checksum: 10c0/c86329a04e055db3755d8ae501e7a7720c975c12aaa963083e90096901831c42bd746e4322de674d0fbf7a6e92381a314e73e85b5500083ab52cb0a8b3ff68ce - languageName: node - linkType: hard - -"@firebase/installations-types@npm:0.5.2": - version: 0.5.2 - resolution: "@firebase/installations-types@npm:0.5.2" - peerDependencies: - "@firebase/app-types": 0.x - checksum: 10c0/f0a80b57fbeea6a079bfa564a8e5490aeb4a11e0d8e6ea73e548e3ccee637554eed30abc2c7c639d4fcc13c56f440f3aac1ff1588886cbaf552da0cbbd349545 - languageName: node - linkType: hard - "@firebase/installations-types@npm:0.5.3": version: 0.5.3 resolution: "@firebase/installations-types@npm:0.5.3" @@ -5790,29 +5470,6 @@ __metadata: languageName: node linkType: hard -"@firebase/installations@npm:0.6.9": - version: 0.6.9 - resolution: "@firebase/installations@npm:0.6.9" - dependencies: - "@firebase/component": "npm:0.6.9" - "@firebase/util": "npm:1.10.0" - idb: "npm:7.1.1" - tslib: "npm:^2.1.0" - peerDependencies: - "@firebase/app": 0.x - checksum: 10c0/fafae83f93ad697e4da18c947605edb5debe68bc80737697e15c25681a17d0be04c743fcfd18358e3e467ff3e7260b7285e6854c5e998953e881383ceb70fe22 - languageName: node - linkType: hard - -"@firebase/logger@npm:0.4.2": - version: 0.4.2 - resolution: "@firebase/logger@npm:0.4.2" - dependencies: - tslib: "npm:^2.1.0" - checksum: 10c0/bec040b451ac10fa2dbec54e262093eedab7a684d2f2c80f2549e918db6c4b2091ff7fc1f70f6cd1ec65564dc3b8f9b9d1b4dbfb9708b7ae2b9fd856ee764b3a - languageName: node - linkType: hard - "@firebase/logger@npm:0.4.4": version: 0.4.4 resolution: "@firebase/logger@npm:0.4.4" @@ -5822,20 +5479,6 @@ __metadata: languageName: node linkType: hard -"@firebase/messaging-compat@npm:0.2.11": - version: 0.2.11 - resolution: "@firebase/messaging-compat@npm:0.2.11" - dependencies: - "@firebase/component": "npm:0.6.9" - "@firebase/messaging": "npm:0.12.11" - "@firebase/util": "npm:1.10.0" - tslib: "npm:^2.1.0" - peerDependencies: - "@firebase/app-compat": 0.x - checksum: 10c0/c78a548bfa911f391990ff0f77336094dc1259da8a6f6e839719950410739a7ff9fe541bd72ef689a8ed9f2cc595dd41c289444e0876e119741b0a3c582985e7 - languageName: node - linkType: hard - "@firebase/messaging-compat@npm:0.2.15": version: 0.2.15 resolution: "@firebase/messaging-compat@npm:0.2.15" @@ -5850,13 +5493,6 @@ __metadata: languageName: node linkType: hard -"@firebase/messaging-interop-types@npm:0.2.2": - version: 0.2.2 - resolution: "@firebase/messaging-interop-types@npm:0.2.2" - checksum: 10c0/c2ecebd2c1762869adc5a8dffc8881cb96ed4da8532291d6d5aca5302201546a19cd9a369561de29d253deb82d53be05e3d6fbdabd66ef1ba7c2e162ac5bf0f5 - languageName: node - linkType: hard - "@firebase/messaging-interop-types@npm:0.2.3": version: 0.2.3 resolution: "@firebase/messaging-interop-types@npm:0.2.3" @@ -5864,22 +5500,6 @@ __metadata: languageName: node linkType: hard -"@firebase/messaging@npm:0.12.11": - version: 0.12.11 - resolution: "@firebase/messaging@npm:0.12.11" - dependencies: - "@firebase/component": "npm:0.6.9" - "@firebase/installations": "npm:0.6.9" - "@firebase/messaging-interop-types": "npm:0.2.2" - "@firebase/util": "npm:1.10.0" - idb: "npm:7.1.1" - tslib: "npm:^2.1.0" - peerDependencies: - "@firebase/app": 0.x - checksum: 10c0/8e745e0ca34bd12c115755904979f18b799ffe8a6e8205c756d075c526aa5d955197d7734f9930757e6b1b8e14d60c29cc30a3d72a4d9d41acd9f35ac76301b0 - languageName: node - linkType: hard - "@firebase/messaging@npm:0.12.15": version: 0.12.15 resolution: "@firebase/messaging@npm:0.12.15" @@ -5912,29 +5532,6 @@ __metadata: languageName: node linkType: hard -"@firebase/performance-compat@npm:0.2.9": - version: 0.2.9 - resolution: "@firebase/performance-compat@npm:0.2.9" - dependencies: - "@firebase/component": "npm:0.6.9" - "@firebase/logger": "npm:0.4.2" - "@firebase/performance": "npm:0.6.9" - "@firebase/performance-types": "npm:0.2.2" - "@firebase/util": "npm:1.10.0" - tslib: "npm:^2.1.0" - peerDependencies: - "@firebase/app-compat": 0.x - checksum: 10c0/4359a27fea0d5ac1da46146cad5039d8746639d5a2099810fe162c8fa05a87e78d38a64fa1d92007914ff0858b3ddf5ba3cd461d4ce9c83e5c277c208c5a03c4 - languageName: node - linkType: hard - -"@firebase/performance-types@npm:0.2.2": - version: 0.2.2 - resolution: "@firebase/performance-types@npm:0.2.2" - checksum: 10c0/4187b2d8c49fa7b51bb8811fc25b31500d7e90b43ad48977a57eb77e461be963d4c102468b81471b04c30125270ea48399a4976f1ceb2ddabfe6e1ab901541d1 - languageName: node - linkType: hard - "@firebase/performance-types@npm:0.2.3": version: 0.2.3 resolution: "@firebase/performance-types@npm:0.2.3" @@ -5957,21 +5554,6 @@ __metadata: languageName: node linkType: hard -"@firebase/performance@npm:0.6.9": - version: 0.6.9 - resolution: "@firebase/performance@npm:0.6.9" - dependencies: - "@firebase/component": "npm:0.6.9" - "@firebase/installations": "npm:0.6.9" - "@firebase/logger": "npm:0.4.2" - "@firebase/util": "npm:1.10.0" - tslib: "npm:^2.1.0" - peerDependencies: - "@firebase/app": 0.x - checksum: 10c0/ac6d37c9cb087789bb31c4afb0a202e017214e7ec2e1226260a140cd977465743817685cb7cd37e64cb1063aaf78fb119bc48e69c5c865fd5e90df9d2c5464e1 - languageName: node - linkType: hard - "@firebase/remote-config-compat@npm:0.2.11": version: 0.2.11 resolution: "@firebase/remote-config-compat@npm:0.2.11" @@ -5988,29 +5570,6 @@ __metadata: languageName: node linkType: hard -"@firebase/remote-config-compat@npm:0.2.9": - version: 0.2.9 - resolution: "@firebase/remote-config-compat@npm:0.2.9" - dependencies: - "@firebase/component": "npm:0.6.9" - "@firebase/logger": "npm:0.4.2" - "@firebase/remote-config": "npm:0.4.9" - "@firebase/remote-config-types": "npm:0.3.2" - "@firebase/util": "npm:1.10.0" - tslib: "npm:^2.1.0" - peerDependencies: - "@firebase/app-compat": 0.x - checksum: 10c0/bd5393ce8aa518262851158acaf4c2e383bd01d09a92b4f4e1d9ec7b26e463c1b0d35b843e3db375c91a8ad397fb5b51f164960ffc990ab2b51d2e5a16f7a240 - languageName: node - linkType: hard - -"@firebase/remote-config-types@npm:0.3.2": - version: 0.3.2 - resolution: "@firebase/remote-config-types@npm:0.3.2" - checksum: 10c0/eab1a2c046ed77a9072e73f9cb0a21ce8e93f79a726d6be06ff2338c608f4f3c98a10315ca151b6d88635da5c6301e2a6c8026db1828430a467259497380eb9b - languageName: node - linkType: hard - "@firebase/remote-config-types@npm:0.3.3": version: 0.3.3 resolution: "@firebase/remote-config-types@npm:0.3.3" @@ -6033,36 +5592,6 @@ __metadata: languageName: node linkType: hard -"@firebase/remote-config@npm:0.4.9": - version: 0.4.9 - resolution: "@firebase/remote-config@npm:0.4.9" - dependencies: - "@firebase/component": "npm:0.6.9" - "@firebase/installations": "npm:0.6.9" - "@firebase/logger": "npm:0.4.2" - "@firebase/util": "npm:1.10.0" - tslib: "npm:^2.1.0" - peerDependencies: - "@firebase/app": 0.x - checksum: 10c0/48c27cc86bc92e3ffc9e22758697fa788cc46d855e3117af153bc5dbdf0d66fb7400432349d0f143b0482fdbfaddadbeaa34819574efe10f4ef100fe86b5d469 - languageName: node - linkType: hard - -"@firebase/storage-compat@npm:0.3.12": - version: 0.3.12 - resolution: "@firebase/storage-compat@npm:0.3.12" - dependencies: - "@firebase/component": "npm:0.6.9" - "@firebase/storage": "npm:0.13.2" - "@firebase/storage-types": "npm:0.8.2" - "@firebase/util": "npm:1.10.0" - tslib: "npm:^2.1.0" - peerDependencies: - "@firebase/app-compat": 0.x - checksum: 10c0/7fd4febb0e48eed42b46913b0433eb7befc6c33a97b3efe23209c0ed8add600ed8626a91722a36fbc59cdd36206fecd0043e7169fd6ca07c5c123dceb6510058 - languageName: node - linkType: hard - "@firebase/storage-compat@npm:0.3.14": version: 0.3.14 resolution: "@firebase/storage-compat@npm:0.3.14" @@ -6078,16 +5607,6 @@ __metadata: languageName: node linkType: hard -"@firebase/storage-types@npm:0.8.2": - version: 0.8.2 - resolution: "@firebase/storage-types@npm:0.8.2" - peerDependencies: - "@firebase/app-types": 0.x - "@firebase/util": 1.x - checksum: 10c0/8319975f6ee1585d52670fc75eaaf668ba9d4ae75c766dd1b33e609de68b191865a7125beeca5df6232636a7fd3a1cdc412848a1fc196b5410503f096de99daf - languageName: node - linkType: hard - "@firebase/storage-types@npm:0.8.3": version: 0.8.3 resolution: "@firebase/storage-types@npm:0.8.3" @@ -6098,20 +5617,6 @@ __metadata: languageName: node linkType: hard -"@firebase/storage@npm:0.13.2": - version: 0.13.2 - resolution: "@firebase/storage@npm:0.13.2" - dependencies: - "@firebase/component": "npm:0.6.9" - "@firebase/util": "npm:1.10.0" - tslib: "npm:^2.1.0" - undici: "npm:6.19.7" - peerDependencies: - "@firebase/app": 0.x - checksum: 10c0/12791911ef1bab345d62584fb5edfed18576a18990408ff9203bed8a04b6988946af4af515ad878fe7346d355709310c5fa05946c2701e68a27a3653ecfac83f - languageName: node - linkType: hard - "@firebase/storage@npm:0.13.4": version: 0.13.4 resolution: "@firebase/storage@npm:0.13.4" @@ -6125,15 +5630,6 @@ __metadata: languageName: node linkType: hard -"@firebase/util@npm:1.10.0": - version: 1.10.0 - resolution: "@firebase/util@npm:1.10.0" - dependencies: - tslib: "npm:^2.1.0" - checksum: 10c0/fc152a2cbdd06323f57f66c90cd388369e48e8910d589127f2ea76ca415c43c1c59b5b7b240307ae18f7f4c9cf0f97c71cb06e5ed8cba770b70958903ec52571 - languageName: node - linkType: hard - "@firebase/util@npm:1.10.2": version: 1.10.2 resolution: "@firebase/util@npm:1.10.2" @@ -6143,22 +5639,6 @@ __metadata: languageName: node linkType: hard -"@firebase/vertexai-preview@npm:0.0.4": - version: 0.0.4 - resolution: "@firebase/vertexai-preview@npm:0.0.4" - dependencies: - "@firebase/app-check-interop-types": "npm:0.3.2" - "@firebase/component": "npm:0.6.9" - "@firebase/logger": "npm:0.4.2" - "@firebase/util": "npm:1.10.0" - tslib: "npm:^2.1.0" - peerDependencies: - "@firebase/app": 0.x - "@firebase/app-types": 0.x - checksum: 10c0/863fb2a92952f0eb543cbedaad8153d61060dfc4df93492dff87ce07d74710946e6bab255f1659de629a673a7b4bb46db0c2a36bc7314de781cf28c7938431a3 - languageName: node - linkType: hard - "@firebase/vertexai@npm:1.0.2": version: 1.0.2 resolution: "@firebase/vertexai@npm:1.0.2" @@ -6175,13 +5655,6 @@ __metadata: languageName: node linkType: hard -"@firebase/webchannel-wrapper@npm:1.0.1": - version: 1.0.1 - resolution: "@firebase/webchannel-wrapper@npm:1.0.1" - checksum: 10c0/080e9a2c2b8077877a526851a500e8d01e271fd21b44f792fe48c7b4863498b1c0d631605d64a8e08a17c726bf492d4b418b9f3ef5efb78aa46866d1d7b14a8d - languageName: node - linkType: hard - "@firebase/webchannel-wrapper@npm:1.0.3": version: 1.0.3 resolution: "@firebase/webchannel-wrapper@npm:1.0.3" @@ -22676,42 +22149,7 @@ __metadata: languageName: node linkType: hard -"firebase@npm:10.13.2": - version: 10.13.2 - resolution: "firebase@npm:10.13.2" - dependencies: - "@firebase/analytics": "npm:0.10.8" - "@firebase/analytics-compat": "npm:0.2.14" - "@firebase/app": "npm:0.10.11" - "@firebase/app-check": "npm:0.8.8" - "@firebase/app-check-compat": "npm:0.3.15" - "@firebase/app-compat": "npm:0.2.41" - "@firebase/app-types": "npm:0.9.2" - "@firebase/auth": "npm:1.7.9" - "@firebase/auth-compat": "npm:0.5.14" - "@firebase/database": "npm:1.0.8" - "@firebase/database-compat": "npm:1.0.8" - "@firebase/firestore": "npm:4.7.2" - "@firebase/firestore-compat": "npm:0.3.37" - "@firebase/functions": "npm:0.11.8" - "@firebase/functions-compat": "npm:0.3.14" - "@firebase/installations": "npm:0.6.9" - "@firebase/installations-compat": "npm:0.2.9" - "@firebase/messaging": "npm:0.12.11" - "@firebase/messaging-compat": "npm:0.2.11" - "@firebase/performance": "npm:0.6.9" - "@firebase/performance-compat": "npm:0.2.9" - "@firebase/remote-config": "npm:0.4.9" - "@firebase/remote-config-compat": "npm:0.2.9" - "@firebase/storage": "npm:0.13.2" - "@firebase/storage-compat": "npm:0.3.12" - "@firebase/util": "npm:1.10.0" - "@firebase/vertexai-preview": "npm:0.0.4" - checksum: 10c0/3e98c729e4cea8da83b26060fc3e7d93bc86474da1a0c9dc56b22f16eb3b027c8cf2a37ab324517996934c0452825a0708edd5b651828fc96fbe69fb629e9e58 - languageName: node - linkType: hard - -"firebase@npm:^11.1.0": +"firebase@npm:11.1.0": version: 11.1.0 resolution: "firebase@npm:11.1.0" dependencies: @@ -37784,13 +37222,6 @@ __metadata: languageName: node linkType: hard -"undici@npm:6.19.7": - version: 6.19.7 - resolution: "undici@npm:6.19.7" - checksum: 10c0/801d1e66d5bccdd3fcc9ecf1c95b83a593e4867b89e21ed725e35bd4d572b3d3ce1d7feab2a4f2046f65923de70bfafb69ac148c633d1ab30a948d6fec24475a - languageName: node - linkType: hard - "undici@npm:^5.12.0": version: 5.28.4 resolution: "undici@npm:5.28.4" From c2e525f9899588eca55094e55fde0c142a90aec1 Mon Sep 17 00:00:00 2001 From: yungblud Date: Sun, 29 Dec 2024 21:02:27 +0900 Subject: [PATCH 2/4] feat(surf-tree): :art: implemented firebase context --- .../app/(lib)/firebase/firebase.constants.ts | 9 ++++++ .../src/app/(lib)/firebase/firebase.ts | 28 +++++++++++++++++++ .../surf-tree/src/app/(lib)/firebase/index.ts | 1 + apps/surf-tree/src/app/(lib)/index.ts | 1 + apps/surf-tree/src/app/layout.tsx | 6 ++-- .../firebase-context/firebase-context.tsx | 15 ++++++++++ .../src/contexts/firebase-context/index.ts | 1 + apps/surf-tree/src/contexts/index.ts | 1 + 8 files changed, 60 insertions(+), 2 deletions(-) create mode 100644 apps/surf-tree/src/app/(lib)/firebase/firebase.constants.ts create mode 100644 apps/surf-tree/src/app/(lib)/firebase/firebase.ts create mode 100644 apps/surf-tree/src/app/(lib)/firebase/index.ts create mode 100644 apps/surf-tree/src/app/(lib)/index.ts create mode 100644 apps/surf-tree/src/contexts/firebase-context/firebase-context.tsx create mode 100644 apps/surf-tree/src/contexts/firebase-context/index.ts diff --git a/apps/surf-tree/src/app/(lib)/firebase/firebase.constants.ts b/apps/surf-tree/src/app/(lib)/firebase/firebase.constants.ts new file mode 100644 index 00000000..88c5b5cc --- /dev/null +++ b/apps/surf-tree/src/app/(lib)/firebase/firebase.constants.ts @@ -0,0 +1,9 @@ +export const firebaseConfig = { + apiKey: process.env.NEXT_PUBLIC_FIREBASE_API_KEY, + authDomain: process.env.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN, + projectId: process.env.NEXT_PUBLIC_FIREBASE_PROJECT_ID, + storageBucket: process.env.NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET, + messagingSenderId: process.env.NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID, + appId: process.env.NEXT_PUBLIC_FIREBASE_APP_ID, + measurementId: process.env.NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID, +} diff --git a/apps/surf-tree/src/app/(lib)/firebase/firebase.ts b/apps/surf-tree/src/app/(lib)/firebase/firebase.ts new file mode 100644 index 00000000..1cd58352 --- /dev/null +++ b/apps/surf-tree/src/app/(lib)/firebase/firebase.ts @@ -0,0 +1,28 @@ +// Import the functions you need from the SDKs you need +import { Analytics, getAnalytics } from 'firebase/analytics' +import { FirebaseApp, initializeApp as fbInitializeApp } from 'firebase/app' +import { firebaseConfig } from './firebase.constants' +// TODO: Add SDKs for Firebase products that you want to use +// https://firebase.google.com/docs/web/setup#available-libraries + +/** + * only for client side + */ +export class Firebase { + private analytics: Analytics + private app: FirebaseApp + + constructor() { + // Initialize Firebase + this.app = fbInitializeApp(firebaseConfig) + this.analytics = getAnalytics(this.app) + } + + static initializeApp() { + if (process.env.NODE_ENV === 'development') { + return + } + const app = fbInitializeApp(firebaseConfig) + return getAnalytics(app) + } +} diff --git a/apps/surf-tree/src/app/(lib)/firebase/index.ts b/apps/surf-tree/src/app/(lib)/firebase/index.ts new file mode 100644 index 00000000..981142c2 --- /dev/null +++ b/apps/surf-tree/src/app/(lib)/firebase/index.ts @@ -0,0 +1 @@ +export * from './firebase' diff --git a/apps/surf-tree/src/app/(lib)/index.ts b/apps/surf-tree/src/app/(lib)/index.ts new file mode 100644 index 00000000..981142c2 --- /dev/null +++ b/apps/surf-tree/src/app/(lib)/index.ts @@ -0,0 +1 @@ +export * from './firebase' diff --git a/apps/surf-tree/src/app/layout.tsx b/apps/surf-tree/src/app/layout.tsx index 7a660510..b9a42d6b 100644 --- a/apps/surf-tree/src/app/layout.tsx +++ b/apps/surf-tree/src/app/layout.tsx @@ -1,4 +1,4 @@ -import { OceanRoadThemeContext } from '@/contexts' +import { FirebaseContext, OceanRoadThemeContext } from '@/contexts' import type { Metadata } from 'next' import { Noto_Sans_KR } from 'next/font/google' @@ -74,7 +74,9 @@ export default function RootLayout({ `, }} /> - {children} + + {children} + ) diff --git a/apps/surf-tree/src/contexts/firebase-context/firebase-context.tsx b/apps/surf-tree/src/contexts/firebase-context/firebase-context.tsx new file mode 100644 index 00000000..c1af22e8 --- /dev/null +++ b/apps/surf-tree/src/contexts/firebase-context/firebase-context.tsx @@ -0,0 +1,15 @@ +'use client' + +import { Firebase } from '@/app/(lib)' +import { PropsWithChildren, useEffect } from 'react' + +export function FirebaseContext({ children }: PropsWithChildren) { + useEffect(() => { + function initFirebase() { + Firebase.initializeApp() + } + initFirebase() + }, []) + + return <>{children} +} diff --git a/apps/surf-tree/src/contexts/firebase-context/index.ts b/apps/surf-tree/src/contexts/firebase-context/index.ts new file mode 100644 index 00000000..d1da24fb --- /dev/null +++ b/apps/surf-tree/src/contexts/firebase-context/index.ts @@ -0,0 +1 @@ +export * from './firebase-context' diff --git a/apps/surf-tree/src/contexts/index.ts b/apps/surf-tree/src/contexts/index.ts index d5b6dc29..e666c7f5 100644 --- a/apps/surf-tree/src/contexts/index.ts +++ b/apps/surf-tree/src/contexts/index.ts @@ -1 +1,2 @@ +export * from './firebase-context' export * from './ocean-road-theme-context' From fa4d3f33cc4144c427751cbd8282e38a7fae9cd3 Mon Sep 17 00:00:00 2001 From: yungblud Date: Sun, 29 Dec 2024 21:03:31 +0900 Subject: [PATCH 3/4] feat(surf-tree): :art: ci implement --- .github/workflows/ci-cd.surf-tree.yml | 7 +++++++ apps/surf-tree/.env.sample | 9 ++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-cd.surf-tree.yml b/.github/workflows/ci-cd.surf-tree.yml index 37be5e7e..83c1a728 100644 --- a/.github/workflows/ci-cd.surf-tree.yml +++ b/.github/workflows/ci-cd.surf-tree.yml @@ -24,6 +24,13 @@ jobs: run: | echo "SURF_TREE_DOMAIN_CERT_ARN=${{ secrets.SURF_TREE_DOMAIN_CERT_ARN }}" >> .env echo "SURF_TREE_DOMAIN_NAME=${{ secrets.SURF_TREE_DOMAIN_NAME }}" >> .env + echo "NEXT_PUBLIC_FIREBASE_API_KEY=${{ secrets.SURF_TREE_FIREBASE_API_KEY }}" >> .env + echo "NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=${{ secrets.SURF_TREE_FIREBASE_AUTH_DOMAIN }}" >> .env + echo "NEXT_PUBLIC_FIREBASE_PROJECT_ID=${{ secrets.SURF_TREE_FIREBASE_PROJECT_ID }}" >> .env + echo "NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=${{ secrets.SURF_TREE_FIREBASE_STORAGE_BUCKET }}" >> .env + echo "NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=${{ secrets.SURF_TREE_FIREBASE_MESSAGING_SENDER_ID }}" >> .env + echo "NEXT_PUBLIC_FIREBASE_APP_ID=${{ secrets.SURF_TREE_FIREBASE_APP_ID }}" >> .env + echo "NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID=${{ secrets.SURF_TREE_FIREBASE_MEASUREMENT_ID }}" >> .env - name: SST Next.js template action uses: ./.github/workflows/composites/sst-nextjs-template diff --git a/apps/surf-tree/.env.sample b/apps/surf-tree/.env.sample index 88a286cc..53ad462d 100644 --- a/apps/surf-tree/.env.sample +++ b/apps/surf-tree/.env.sample @@ -1,2 +1,9 @@ SURF_TREE_DOMAIN_NAME= -SURF_TREE_DOMAIN_CERT_ARN= \ No newline at end of file +SURF_TREE_DOMAIN_CERT_ARN= +NEXT_PUBLIC_FIREBASE_API_KEY= +NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN= +NEXT_PUBLIC_FIREBASE_PROJECT_ID= +NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET= +NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID= +NEXT_PUBLIC_FIREBASE_APP_ID= +NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID= \ No newline at end of file From c0cccafb6fe5a33688c072078eb6717f92cd10d3 Mon Sep 17 00:00:00 2001 From: yungblud Date: Sun, 29 Dec 2024 21:06:05 +0900 Subject: [PATCH 4/4] feat(surf-tree): :art: v1.0.6 --- apps/surf-tree/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/surf-tree/package.json b/apps/surf-tree/package.json index 0f0be5cd..eb1fec3c 100644 --- a/apps/surf-tree/package.json +++ b/apps/surf-tree/package.json @@ -1,6 +1,6 @@ { "name": "@coldsurfers/surf-tree", - "version": "1.0.5", + "version": "1.0.6", "private": true, "scripts": { "build": "next build",