Skip to content

Commit

Permalink
Fix sponsors not automatically updating ✅
Browse files Browse the repository at this point in the history
  • Loading branch information
wotschofsky committed Nov 12, 2024
1 parent 306457d commit 711502f
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions app/(landing)/certs/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { SponsorsSection } from '../_components/sponsors-section';
import { AuthorSection } from './../_components/author-section';
import { TrustedBySection } from './../_components/trusted-by-section';

export const revalidate = 86400; // 24 hours

export const metadata = {
openGraph: {
url: '/certs',
Expand Down
2 changes: 2 additions & 0 deletions app/(landing)/map/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { SponsorsSection } from '../_components/sponsors-section';
import { AuthorSection } from './../_components/author-section';
import { TrustedBySection } from './../_components/trusted-by-section';

export const revalidate = 86400; // 24 hours

export const metadata = {
openGraph: {
url: '/map',
Expand Down
2 changes: 2 additions & 0 deletions app/(landing)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import { FeaturesSection } from './_components/features-section';
import { SponsorsSection } from './_components/sponsors-section';
import { TrustedBySection } from './_components/trusted-by-section';

export const revalidate = 86400; // 24 hours

export const metadata = {
openGraph: {
url: '/',
Expand Down
2 changes: 2 additions & 0 deletions app/(landing)/subdomains/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { SponsorsSection } from '../_components/sponsors-section';
import { AuthorSection } from './../_components/author-section';
import { TrustedBySection } from './../_components/trusted-by-section';

export const revalidate = 86400; // 24 hours

export const metadata = {
openGraph: {
url: '/subdomains',
Expand Down
2 changes: 2 additions & 0 deletions app/(landing)/whois/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { SponsorsSection } from '../_components/sponsors-section';
import { AuthorSection } from './../_components/author-section';
import { TrustedBySection } from './../_components/trusted-by-section';

export const revalidate = 86400; // 24 hours

export const metadata = {
openGraph: {
url: '/whois',
Expand Down
3 changes: 0 additions & 3 deletions lib/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ export const getGitHubSponsors = async (username: string) => {
username,
},
}),
next: {
revalidate: 24 * 60 * 60,
},
});

if (!response.ok) {
Expand Down

0 comments on commit 711502f

Please sign in to comment.