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() { export function UpdatePublicProfileForm() {
const [profileVisibility, setProfileVisibility] = const [profileVisibility, setProfileVisibility] =
useState<AllowedProfileVisibility>('private'); useState<AllowedProfileVisibility>('public');
const toast = useToast(); const toast = useToast();
@ -117,7 +117,7 @@ export function UpdatePublicProfileForm() {
setTwitter(links?.twitter || ''); setTwitter(links?.twitter || '');
setLinkedin(links?.linkedin || ''); setLinkedin(links?.linkedin || '');
setWebsite(links?.website || ''); setWebsite(links?.website || '');
setProfileVisibility(defaultProfileVisibility || 'private'); setProfileVisibility(defaultProfileVisibility || 'public');
setHeadline(publicConfig?.headline || ''); setHeadline(publicConfig?.headline || '');
setRoadmapVisibility(publicConfig?.roadmapVisibility || 'none'); setRoadmapVisibility(publicConfig?.roadmapVisibility || 'none');
setCustomRoadmapVisibility(publicConfig?.customRoadmapVisibility || 'none'); setCustomRoadmapVisibility(publicConfig?.customRoadmapVisibility || 'none');

@ -1,6 +1,6 @@
import { execSync } from 'child_process'; import { execSync } from 'child_process';
export const prerender = false; export const prerender = true;
export async function GET() { export async function GET() {
const commitHash = execSync('git rev-parse HEAD').toString().trim(); const commitHash = execSync('git rev-parse HEAD').toString().trim();

Loading…
Cancel
Save