File tree Expand file tree Collapse file tree
apps/web/app/(org)/dashboard/_components/Navbar Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,6 +56,12 @@ const AdminNavItems = ({ toggleMobileNav }: Props) => {
5656 const [ open , setOpen ] = useState ( false ) ;
5757 const { user, sidebarCollapsed, userCapsCount } = useDashboardContext ( ) ;
5858
59+ const DEVELOPER_DASHBOARD_ALLOWED_EMAILS = [ "richie@cap.so" ] ;
60+
61+ const showDeveloperDashboard =
62+ buildEnv . NEXT_PUBLIC_IS_CAP &&
63+ DEVELOPER_DASHBOARD_ALLOWED_EMAILS . includes ( user . email ) ;
64+
5965 const manageNavigation = [
6066 {
6167 name : "My Caps" ,
@@ -91,7 +97,7 @@ const AdminNavItems = ({ toggleMobileNav }: Props) => {
9197 icon : < CogIcon /> ,
9298 subNav : [ ] ,
9399 } ,
94- ...( buildEnv . NEXT_PUBLIC_IS_CAP
100+ ...( showDeveloperDashboard
95101 ? [
96102 {
97103 name : "Developers" ,
Original file line number Diff line number Diff line change 1919 "import" : " ./dist/vanilla/cap-embed-loader.js"
2020 }
2121 },
22- "files" : [" dist" ],
22+ "files" : [
23+ " dist"
24+ ],
2325 "scripts" : {
2426 "build" : " tsup" ,
2527 "typecheck" : " tsc --noEmit"
Original file line number Diff line number Diff line change 1515 "import" : " ./dist/react/index.js"
1616 }
1717 },
18- "files" : [" dist" ],
18+ "files" : [
19+ " dist"
20+ ],
1921 "scripts" : {
2022 "build" : " tsup" ,
2123 "typecheck" : " tsc --noEmit"
You can’t perform that action at this time.
0 commit comments