Skip to content

Commit

Permalink
fix: revalidate all apis
Browse files Browse the repository at this point in the history
  • Loading branch information
hyochan committed Nov 23, 2023
1 parent 12eda2f commit afb8b8c
Show file tree
Hide file tree
Showing 6 changed files with 7,598 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/pages/api/github-stats-advanced.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export const revalidate = 3600;

import {track} from '@amplitude/analytics-browser';
import type {NextApiRequest, NextApiResponse} from 'next';

Expand Down
2 changes: 2 additions & 0 deletions src/pages/api/github-stats.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export const revalidate = 3600;

import {track} from '@amplitude/analytics-node';
import type {NextApiRequest, NextApiResponse} from 'next';

Expand Down
2 changes: 2 additions & 0 deletions src/pages/api/github-trophies.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export const revalidate = 3600;

import {track} from '@amplitude/analytics-node';
import type {NextApiRequest, NextApiResponse} from 'next';

Expand Down
3 changes: 2 additions & 1 deletion src/pages/api/plugins.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type {NextApiRequest, NextApiResponse} from 'next';
export const revalidate = 3600;

import type {NextApiRequest, NextApiResponse} from 'next';
import {getSupabaseClient} from '../../../server/supabaseClient';

type Tier = {
Expand Down
3 changes: 2 additions & 1 deletion src/pages/api/recent-users.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type {NextApiRequest, NextApiResponse} from 'next';
export const revalidate = 3600;

import type {NextApiRequest, NextApiResponse} from 'next';
import {getSupabaseClient} from '../../../server/supabaseClient';
import type {PluginUser} from '../../utils/functions';
import {getUserPlugins} from '../../utils/functions';
Expand Down
Loading

1 comment on commit afb8b8c

@vercel
Copy link

@vercel vercel bot commented on afb8b8c Nov 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

github-stats – ./

github-stats-git-main-hyochan.vercel.app
stats.dooboo.io
github-stats-hyochan.vercel.app
stats.hyochan.dev

Please sign in to comment.