mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-21 10:44:46 +12:00
chore: update nextjs
This commit is contained in:
parent
b36ec98382
commit
f9ba11eba3
7 changed files with 1951 additions and 1236 deletions
|
@ -70,7 +70,7 @@
|
||||||
"@testing-library/user-event": "^14.5.2",
|
"@testing-library/user-event": "^14.5.2",
|
||||||
"@types/html-escaper": "^3.0.2",
|
"@types/html-escaper": "^3.0.2",
|
||||||
"@types/node": "18.18.8",
|
"@types/node": "18.18.8",
|
||||||
"@types/react": "^18.3.2",
|
"@types/react": "^18.3.3",
|
||||||
"@types/react-dom": "^18.3.0",
|
"@types/react-dom": "^18.3.0",
|
||||||
"@unocss/eslint-plugin": "^0.60.2",
|
"@unocss/eslint-plugin": "^0.60.2",
|
||||||
"@unocss/postcss": "^0.60.2",
|
"@unocss/postcss": "^0.60.2",
|
||||||
|
|
|
@ -49,24 +49,24 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@radix-ui/react-collapsible": "^1.0.3",
|
"@radix-ui/react-collapsible": "^1.0.3",
|
||||||
"@react-icons/all-files": "^4.1.0",
|
"@react-icons/all-files": "^4.1.0",
|
||||||
"@vercel/analytics": "^1.2.2",
|
"@vercel/analytics": "^1.3.0",
|
||||||
"@vercel/blob": "^0.23.2",
|
"@vercel/blob": "^0.23.3",
|
||||||
"@vercel/edge-config": "^1.1.0",
|
"@vercel/edge-config": "^1.1.1",
|
||||||
"@vercel/og": "^0.6.2",
|
"@vercel/og": "^0.6.2",
|
||||||
"@vercel/postgres": "^0.8.0",
|
"@vercel/postgres": "^0.8.0",
|
||||||
"cmdk": "^1.0.0",
|
"cmdk": "^1.0.0",
|
||||||
"geist": "^1.3.0",
|
"geist": "^1.3.0",
|
||||||
"jotai": "^2.8.0",
|
"jotai": "^2.8.1",
|
||||||
"lucide-react": "^0.378.0",
|
"lucide-react": "^0.379.0",
|
||||||
"meilisearch": "^0.40.0",
|
"meilisearch": "^0.40.0",
|
||||||
"next": "^14.3.0-canary.70",
|
"next": "^15.0.0-rc.0",
|
||||||
"next-mdx-remote": "^4.4.1",
|
"next-mdx-remote-client": "^1.0.3",
|
||||||
"next-themes": "^0.3.0",
|
"next-themes": "^0.3.0",
|
||||||
"overlayscrollbars": "^2.8.0",
|
"overlayscrollbars": "^2.8.2",
|
||||||
"overlayscrollbars-react": "^0.5.6",
|
"overlayscrollbars-react": "^0.5.6",
|
||||||
"react": "^19.0.0-rc-3f1436cca1-20240516",
|
"react": "^19.0.0-rc-4c2e457c7c-20240522",
|
||||||
"react-aria-components": "^1.2.0",
|
"react-aria-components": "^1.2.1",
|
||||||
"react-dom": "^19.0.0-rc-3f1436cca1-20240516",
|
"react-dom": "^19.0.0-rc-4c2e457c7c-20240522",
|
||||||
"sharp": "^0.33.4",
|
"sharp": "^0.33.4",
|
||||||
"usehooks-ts": "^3.1.0",
|
"usehooks-ts": "^3.1.0",
|
||||||
"vaul": "^0.9.1"
|
"vaul": "^0.9.1"
|
||||||
|
@ -77,12 +77,12 @@
|
||||||
"@testing-library/react": "^15.0.7",
|
"@testing-library/react": "^15.0.7",
|
||||||
"@testing-library/user-event": "^14.5.2",
|
"@testing-library/user-event": "^14.5.2",
|
||||||
"@types/node": "18.18.8",
|
"@types/node": "18.18.8",
|
||||||
"@types/react": "^18.3.2",
|
"@types/react": "^18.3.3",
|
||||||
"@types/react-dom": "^18.3.0",
|
"@types/react-dom": "^18.3.0",
|
||||||
"@vitejs/plugin-react": "^4.2.1",
|
"@vitejs/plugin-react": "^4.2.1",
|
||||||
"@vitest/coverage-v8": "^1.6.0",
|
"@vitest/coverage-v8": "^1.6.0",
|
||||||
"autoprefixer": "^10.4.19",
|
"autoprefixer": "^10.4.19",
|
||||||
"babel-plugin-react-compiler": "^0.0.0-experimental-592953e-20240517",
|
"babel-plugin-react-compiler": "0.0.0-experimental-592953e-20240517",
|
||||||
"cpy-cli": "^5.0.0",
|
"cpy-cli": "^5.0.0",
|
||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.0",
|
||||||
|
@ -92,13 +92,13 @@
|
||||||
"postcss": "^8.4.38",
|
"postcss": "^8.4.38",
|
||||||
"prettier": "^3.2.5",
|
"prettier": "^3.2.5",
|
||||||
"prettier-plugin-tailwindcss": "^0.5.14",
|
"prettier-plugin-tailwindcss": "^0.5.14",
|
||||||
"remark-gfm": "^3.0.1",
|
"remark-gfm": "^4.0.0",
|
||||||
"remark-rehype": "^11.1.0",
|
"remark-rehype": "^11.1.0",
|
||||||
"shiki": "^1.6.0",
|
"shiki": "^1.6.0",
|
||||||
"tailwindcss": "^3.4.3",
|
"tailwindcss": "^3.4.3",
|
||||||
"turbo": "^1.13.2",
|
"turbo": "^1.13.2",
|
||||||
"typescript": "^5.4.5",
|
"typescript": "^5.4.5",
|
||||||
"vercel": "^34.0.0",
|
"vercel": "^34.2.2",
|
||||||
"vitest": "^1.5.0"
|
"vitest": "^1.5.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
/* eslint-disable react/no-unknown-property */
|
/* eslint-disable react/no-unknown-property */
|
||||||
|
|
||||||
import { ImageResponse } from 'next/og';
|
import { ImageResponse } from 'next/og';
|
||||||
import { resolveKind } from '~/util/resolveNodeKind';
|
import { resolveKind } from '~/util/resolveNodeKind';
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { readFile } from 'node:fs/promises';
|
import { readFile } from 'node:fs/promises';
|
||||||
import { join } from 'node:path';
|
import { join } from 'node:path';
|
||||||
import rehypeShikiFromHighlighter from '@shikijs/rehype/core';
|
import rehypeShikiFromHighlighter from '@shikijs/rehype/core';
|
||||||
import { MDXRemote } from 'next-mdx-remote/rsc';
|
import { MDXRemote } from 'next-mdx-remote-client/rsc';
|
||||||
import remarkGfm from 'remark-gfm';
|
import remarkGfm from 'remark-gfm';
|
||||||
import { getHighlighterCore } from 'shiki/core';
|
import { getHighlighterCore } from 'shiki/core';
|
||||||
import getWasm from 'shiki/wasm';
|
import getWasm from 'shiki/wasm';
|
||||||
|
@ -30,7 +30,7 @@ export default async function Page({ params }: { readonly params: { readonly pac
|
||||||
remarkPlugins: [remarkGfm],
|
remarkPlugins: [remarkGfm],
|
||||||
rehypePlugins: [
|
rehypePlugins: [
|
||||||
[
|
[
|
||||||
rehypeShikiFromHighlighter as any,
|
rehypeShikiFromHighlighter,
|
||||||
highlighter,
|
highlighter,
|
||||||
{
|
{
|
||||||
themes: {
|
themes: {
|
||||||
|
|
|
@ -20,11 +20,7 @@ export const viewport: Viewport = {
|
||||||
};
|
};
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
metadataBase: new URL(
|
metadataBase: new URL(ENV.IS_LOCAL_DEV ? `http://localhost:${ENV.PORT}` : 'https://discord.js.org'),
|
||||||
process.env.NEXT_PUBLIC_LOCAL_DEV === 'true'
|
|
||||||
? `http://localhost:${process.env.PORT ?? 3_000}`
|
|
||||||
: 'https://discord.js.org',
|
|
||||||
),
|
|
||||||
title: {
|
title: {
|
||||||
template: '%s | discord.js',
|
template: '%s | discord.js',
|
||||||
default: 'discord.js',
|
default: 'discord.js',
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
export const ENV = {
|
export const ENV = {
|
||||||
IS_LOCAL_DEV: process.env.VERCEL_ENV === 'development' || process.env.NEXT_PUBLIC_LOCAL_DEV === 'true',
|
IS_LOCAL_DEV: process.env.VERCEL_ENV === 'development' || process.env.NEXT_PUBLIC_LOCAL_DEV === 'true',
|
||||||
IS_PREVIEW: process.env.VERCEL_ENV === 'preview',
|
IS_PREVIEW: process.env.VERCEL_ENV === 'preview',
|
||||||
|
PORT: process.env.PORT ?? 3_000,
|
||||||
};
|
};
|
||||||
|
|
3143
pnpm-lock.yaml
generated
3143
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue