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