From c4c7499a226466233530201dc113d246bc74c127 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Thu, 11 Apr 2024 23:10:14 +0100 Subject: [PATCH] Pre-render stats page --- src/components/UpdateProfile/UpdatePublicProfileForm.tsx | 4 ++-- src/pages/v1-stats.json.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/UpdateProfile/UpdatePublicProfileForm.tsx b/src/components/UpdateProfile/UpdatePublicProfileForm.tsx index 18231dfe7..3563c9240 100644 --- a/src/components/UpdateProfile/UpdatePublicProfileForm.tsx +++ b/src/components/UpdateProfile/UpdatePublicProfileForm.tsx @@ -27,7 +27,7 @@ type GetProfileSettingsResponse = Pick< export function UpdatePublicProfileForm() { const [profileVisibility, setProfileVisibility] = - useState('private'); + useState('public'); const toast = useToast(); @@ -117,7 +117,7 @@ export function UpdatePublicProfileForm() { setTwitter(links?.twitter || ''); setLinkedin(links?.linkedin || ''); setWebsite(links?.website || ''); - setProfileVisibility(defaultProfileVisibility || 'private'); + setProfileVisibility(defaultProfileVisibility || 'public'); setHeadline(publicConfig?.headline || ''); setRoadmapVisibility(publicConfig?.roadmapVisibility || 'none'); setCustomRoadmapVisibility(publicConfig?.customRoadmapVisibility || 'none'); diff --git a/src/pages/v1-stats.json.ts b/src/pages/v1-stats.json.ts index 4a84aeba8..4986d75a4 100644 --- a/src/pages/v1-stats.json.ts +++ b/src/pages/v1-stats.json.ts @@ -1,6 +1,6 @@ import { execSync } from 'child_process'; -export const prerender = false; +export const prerender = true; export async function GET() { const commitHash = execSync('git rev-parse HEAD').toString().trim();