Skip to content

Commit 6fd306b

Browse files
committed
added railway pointer to run graphql to frontend
1 parent 615d8dd commit 6fd306b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docusaurus.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ const config: Config = {
290290

291291
// Custom fields exposed to client-side code (browser-visible at build time)
292292
customFields: {
293-
backendApiUrl: process.env.BACKEND_API_URL || "http://localhost:5000",
293+
backendApiUrl: process.env.BACKEND_API_URL || "https://leaderboard-production-6143.up.railway.app",
294294
gitToken: process.env.DOCUSAURUS_GIT_TOKEN,
295295
clerkPublishableKey: process.env.VITE_CLERK_PUBLISHABLE_KEY || "",
296296
// Shopify credentials for merch store

src/lib/statsProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export function CommunityStatsProvider({
163163
const {
164164
siteConfig: { customFields },
165165
} = useDocusaurusContext();
166-
const backendApiUrl = (customFields?.backendApiUrl as string) || "http://localhost:5000";
166+
const backendApiUrl = (customFields?.backendApiUrl as string) || "https://leaderboard-production-6143.up.railway.app";
167167

168168
const [loading, setLoading] = useState(false); // Start with false to avoid hourglass
169169
const [error, setError] = useState<string | null>(null);

0 commit comments

Comments
 (0)