Pre-render stats page

pull/5495/head
Kamran Ahmed 8 months ago
parent ad6002a514
commit c4c7499a22
  1. 4
      src/components/UpdateProfile/UpdatePublicProfileForm.tsx
  2. 2
      src/pages/v1-stats.json.ts

@ -27,7 +27,7 @@ type GetProfileSettingsResponse = Pick<
export function UpdatePublicProfileForm() {
const [profileVisibility, setProfileVisibility] =
useState<AllowedProfileVisibility>('private');
useState<AllowedProfileVisibility>('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');

@ -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();

Loading…
Cancel
Save