mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
refactor: remove revalidation
This commit is contained in:
@@ -44,9 +44,6 @@ import { DESCRIPTION, PACKAGES } from '~/util/constants';
|
||||
import { findMember, findMemberByKey } from '~/util/model.server';
|
||||
import { tryResolveDescription } from '~/util/summary';
|
||||
|
||||
// eslint-disable-next-line unicorn/numeric-separators-style
|
||||
export const revalidate = 3600;
|
||||
|
||||
export async function generateStaticParams({ params }: { params?: { package: string } }) {
|
||||
const packageName = params?.package ?? 'builders';
|
||||
|
||||
|
||||
@@ -5,9 +5,6 @@ import Link from 'next/link';
|
||||
import { notFound } from 'next/navigation';
|
||||
import { PACKAGES } from '~/util/constants';
|
||||
|
||||
// eslint-disable-next-line unicorn/numeric-separators-style
|
||||
export const revalidate = 3600;
|
||||
|
||||
async function getData(pkg: string) {
|
||||
if (!PACKAGES.includes(pkg)) {
|
||||
notFound();
|
||||
|
||||
@@ -5,9 +5,6 @@ import { VscPackage } from '@react-icons/all-files/vsc/VscPackage';
|
||||
import Link from 'next/link';
|
||||
import { PACKAGES } from '~/util/constants';
|
||||
|
||||
// eslint-disable-next-line unicorn/numeric-separators-style
|
||||
export const revalidate = 3600;
|
||||
|
||||
async function getData() {
|
||||
return Promise.all(
|
||||
PACKAGES.map(async (pkg) => {
|
||||
|
||||
Reference in New Issue
Block a user