File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ The Exosphere state manager is the core backend service that handles workflow ex
2727 -e MONGO_DATABASE_NAME="your-database-name" \
2828 -e STATE_MANAGER_SECRET="your-secret-key" \
2929 -e SECRETS_ENCRYPTION_KEY="your-base64-encoded-encryption-key" \
30- ghcr.io/exospherehost/state-manager:latest
30+ ghcr.io/exospherehost/exosphere- state-manager:latest
3131 ```
3232
3333 2. **Verify the service is running**:
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import type { Metadata } from "next";
22import { darkerGrotesque , pattanakarn } from '../lib/fonts' ;
33import "./globals.css" ;
44import { GoogleAnalytics } from '@next/third-parties/google'
5+ import RB2BLoader from '../components/RB2BLoader' ;
56
67export const metadata : Metadata = {
78 title : "Exosphere | Async AI Workflows at Scale" ,
@@ -73,6 +74,7 @@ export default function RootLayout({
7374 >
7475 { children }
7576 < GoogleAnalytics gaId = "G-XY9H2PN0ZX" />
77+ < RB2BLoader />
7678 </ body >
7779 </ html >
7880 ) ;
Original file line number Diff line number Diff line change 1+ 'use client' ;
2+
3+ import { usePathname } from 'next/navigation' ;
4+ import { useEffect } from 'react' ;
5+
6+ export default function RB2BLoader ( ) {
7+ const pathname = usePathname ( ) ;
8+
9+ useEffect ( ( ) => {
10+ const existing = document . getElementById ( 'rb2b-script' ) ;
11+ if ( existing ) existing . remove ( ) ;
12+
13+ const script = document . createElement ( 'script' ) ;
14+ script . id = 'rb2b-script' ;
15+ script . src = `https://ddwl4m2hdecbv.cloudfront.net/b/${ process . env . NEXT_PUBLIC_RB2B_ID } /${ process . env . NEXT_PUBLIC_RB2B_ID } .js.gz` ;
16+ script . async = true ;
17+ document . body . appendChild ( script ) ;
18+ } , [ pathname ] ) ;
19+
20+ return null ;
21+ }
You can’t perform that action at this time.
0 commit comments