Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ package-lock.json
# Next.js Build Output
.next
build
next-env.d.ts

# Test Runner
junit.xml
Expand Down
11 changes: 5 additions & 6 deletions apps/site/app/[locale]/error.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use client';

import { ArrowRightIcon } from '@heroicons/react/24/solid';
import { useTranslations } from 'next-intl';

import Button from '#site/components/Common/Button';
Expand All @@ -13,17 +12,17 @@ const ErrorPage: FC<{ error: Error }> = () => {

return (
<GlowingBackdropLayout kind="default">
500
<span>500</span>

<h1 className="special -mt-4 text-center">
{t('layouts.error.internalServerError.title')}
</h1>

<p className="-mt-4 max-w-sm text-center text-lg">
{t('layouts.error.internalServerError.description')}
</p>
<Button href="/">
{t('layouts.error.backToHome')}
<ArrowRightIcon />
</Button>

<Button href="/">{t('layouts.error.backToHome')}</Button>
</GlowingBackdropLayout>
);
};
Expand Down
6 changes: 1 addition & 5 deletions apps/site/app/[locale]/not-found.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use server';

import { ArrowRightIcon } from '@heroicons/react/24/solid';
import { getTranslations } from 'next-intl/server';

import Button from '#site/components/Common/Button';
Expand Down Expand Up @@ -28,10 +27,7 @@ const NotFoundPage: FC = async () => {
{t('layouts.error.notFound.description')}
</p>

<Button href="/">
{t('layouts.error.backToHome')}
<ArrowRightIcon />
</Button>
<Button href="/">{t('layouts.error.backToHome')}</Button>
</GlowingBackdropLayout>
);
};
Expand Down
34 changes: 0 additions & 34 deletions apps/site/app/global-error.tsx

This file was deleted.

19 changes: 7 additions & 12 deletions apps/site/components/withNodeRelease.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,15 @@ type WithNodeReleaseProps = {
// Note that Hooks cannot be used in a RSC async component
// Async Components do not get re-rendered at all.
const WithNodeRelease: FC<WithNodeReleaseProps> = async ({
status,
status: statuses,
children: Component,
}) => {
const releaseData = await provideReleaseData();

let matchingRelease: NodeRelease | undefined;
for (const statusItem of Array.isArray(status) ? status : [status]) {
matchingRelease = releaseData.find(
release => release.status === statusItem
);
if (matchingRelease) {
break;
}
}
const releases = await provideReleaseData();

const matchingRelease = [statuses]
.flat()
.map(status => releases.find(release => release.status === status))
.find(Boolean);

if (matchingRelease) {
return <Component release={matchingRelease} />;
Expand Down
2 changes: 1 addition & 1 deletion apps/site/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default baseConfig.concat([

react.configs.flat['jsx-runtime'],
hooks.configs['recommended-latest'],
next.flatConfig.coreWebVitals,
next.configs['core-web-vitals'],
mdx.flatCodeBlocks,

// Type-checking
Expand Down
2 changes: 1 addition & 1 deletion apps/site/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
/// <reference types="next/navigation-types/compat/navigation" />
/// <reference path="./.next/types/routes.d.ts" />
import "./.next/types/routes.d.ts";

// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
10 changes: 5 additions & 5 deletions apps/site/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ const getDeploymentId = async () => {

/** @type {import('next').NextConfig} */
const nextConfig = {
allowedDevOrigins: ['10.1.1.232'],
// Full Support of React 18 SSR and Streaming
reactCompiler: true,
// We don't want to redirect with trailing slashes
skipTrailingSlashRedirect: true,
// We allow the BASE_PATH to be overridden in case that the Website
Expand Down Expand Up @@ -52,10 +53,7 @@ const nextConfig = {
// Enable statically typed links
// @see https://nextjs.org/docs/app/api-reference/config/typescript#statically-typed-links
typedRoutes: true,
// We don't want to run ESLint Checking on Production Builds
// as we already check it on the CI within each Pull Request
// we also configure ESLint to run its lint checking on all files
eslint: { ignoreDuringBuilds: true },
// Experimental Flags
experimental: {
useCache: true,
// Ensure that server-side code is also minified
Expand All @@ -82,6 +80,8 @@ const nextConfig = {
'tailwindcss',
'shiki',
],
// Faster Development Servers with Turbopack
turbopackFileSystemCacheForDev: true,
},
deploymentId: await getDeploymentId(),
};
Expand Down
5 changes: 2 additions & 3 deletions apps/site/open-next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@ const cloudflareConfig = defineCloudflareConfig({

const openNextConfig: OpenNextConfig = {
...cloudflareConfig,
buildCommand: 'pnpm build --webpack',
cloudflare: {
skewProtection: {
enabled: true,
},
skewProtection: { enabled: true },
},
};

Expand Down
27 changes: 14 additions & 13 deletions apps/site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "module",
"scripts": {
"prebuild": "node --run build:blog-data",
"build": "cross-env NODE_NO_WARNINGS=1 next build --turbo",
"build": "cross-env NODE_NO_WARNINGS=1 next build",
"build:blog-data": "cross-env NODE_NO_WARNINGS=1 node ./scripts/blog-data/index.mjs",
"build:blog-data:watch": "node --watch --watch-path=pages/en/blog ./scripts/blog-data/index.mjs",
"cloudflare:build:worker": "OPEN_NEXT_CLOUDFLARE=true opennextjs-cloudflare build",
Expand All @@ -12,7 +12,7 @@
"predeploy": "node --run build:blog-data",
"deploy": "cross-env NEXT_PUBLIC_STATIC_EXPORT=true node --run build",
"predev": "node --run build:blog-data",
"dev": "cross-env NODE_NO_WARNINGS=1 next dev --turbo",
"dev": "cross-env NODE_NO_WARNINGS=1 next dev",
"lint": "node --run lint:js && node --run lint:css && node --run lint:md",
"lint:fix": "node --run lint:js:fix && node --run lint:css:fix && node --run lint:md:fix",
"lint:css": "stylelint \"**/*.css\" --allow-empty-input --cache --cache-strategy=content --cache-location=.stylelintcache",
Expand Down Expand Up @@ -42,25 +42,25 @@
"@opentelemetry/instrumentation": "~0.206.0",
"@opentelemetry/resources": "~1.30.1",
"@orama/core": "^1.2.13",
"@orama/ui": "^1.3.2",
"@orama/ui": "^1.5.3",
"@opentelemetry/sdk-logs": "~0.206.0",
"@radix-ui/react-tabs": "^1.1.13",
"@radix-ui/react-tooltip": "^1.2.8",
"@tailwindcss/postcss": "~4.1.16",
"@tailwindcss/postcss": "~4.1.17",
"@types/node": "catalog:",
"@types/react": "catalog:",
"@vcarl/remark-headings": "~0.1.0",
"@vercel/analytics": "~1.5.0",
"@vercel/otel": "~2.0.1",
"@vercel/otel": "~2.1.0",
"@vercel/speed-insights": "~1.2.0",
"classnames": "catalog:",
"cross-env": "catalog:",
"feed": "~5.1.0",
"github-slugger": "~2.0.0",
"gray-matter": "~4.0.3",
"mdast-util-to-string": "^4.0.0",
"next": "15.5.7",
"next-intl": "~4.3.11",
"next": "16.0.7",
"next-intl": "~4.5.3",
"next-themes": "~0.4.6",
"postcss-calc": "~10.1.1",
"react": "catalog:",
Expand All @@ -80,34 +80,35 @@
},
"devDependencies": {
"@flarelabs-net/wrangler-build-time-fs-assets-polyfilling": "^0.0.1",
"@next/eslint-plugin-next": "15.5.7",
"@next/eslint-plugin-next": "16.0.7",
"@node-core/remark-lint": "workspace:*",
"@opennextjs/cloudflare": "^1.13.1",
"@opennextjs/cloudflare": "^1.14.4",
"@playwright/test": "^1.56.1",
"@testing-library/user-event": "~14.6.1",
"@types/mdast": "^4.0.4",
"@types/mdx": "^2.0.13",
"@types/semver": "~7.7.1",
"babel-plugin-react-compiler": "^1.0.0",
"dedent": "^1.7.0",
"eslint-config-next": "15.5.4",
"eslint-config-next": "16.0.7",
"eslint-plugin-mdx": "~3.6.2",
"eslint-plugin-react": "~7.37.5",
"eslint-plugin-react-hooks": "^5.2.0",
"global-jsdom": "^27.0.0",
"handlebars": "4.7.8",
"jsdom": "^27.1.0",
"jsdom": "^27.2.0",
"mdast-util-from-markdown": "^2.0.2",
"nock": "^14.0.10",
"remark-frontmatter": "^5.0.0",
"stylelint": "16.24.0",
"stylelint-config-standard": "39.0.0",
"stylelint-order": "7.0.0",
"stylelint-selector-bem-pattern": "4.0.1",
"tsx": "^4.20.6",
"tsx": "^4.21.0",
"typescript": "catalog:",
"typescript-eslint": "~8.45.0",
"user-agent-data-types": "0.4.2",
"wrangler": "^4.45.3"
"wrangler": "^4.53.0"
},
"imports": {
"#site/*": [
Expand Down
2 changes: 1 addition & 1 deletion apps/site/pages/pt-br/about/eol.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description: Entenda o Fim de Vida Útil (End-of-Life ou EOL) do Node.js, o que

## Por que e como as versões do Node.js chegam ao Fim de Vida Útil

As versões principais (major) do Node.js são lançadas, corrigidas e designadas como Fim de Vida Útil (EOL) em um cronograma previsível. Como não é viável manter todas as linhas de versão indefinidamente, após um período de manutenção planejado, uma linha de versão principal do Node.js deixa de ser mantida pelo projeto.
As versões principais (major) do Node.js são lançadas, corrigidas e designadas como Fim de Vida Útil (_End-Of-Life_ ou _EOL_) em um cronograma previsível. Como não é viável manter todas as linhas de versão indefinidamente, após um período de manutenção planejado, uma linha de versão principal do Node.js deixa de ser mantida pelo projeto.

<div className="flex flex-col items-start gap-4 xl:flex-row xl:items-center">
<Button kind="primary" href="/download" className="flex-1">
Expand Down
5 changes: 3 additions & 2 deletions apps/site/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"jsx": "react-jsx",
"incremental": true,
"plugins": [
{
Expand All @@ -33,7 +33,8 @@
"**/*.tsx",
// Explicitly include since the globs won't match the `.`
".stylelintrc.mjs",
".next/types/**/*.ts"
".next/types/**/*.ts",
".next/dev/types/**/*.ts"
],
"exclude": ["node_modules", ".next"]
}
13 changes: 11 additions & 2 deletions apps/site/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
"NEXT_PUBLIC_DATA_URL",
"TURBO_CACHE",
"TURBO_TELEMETRY_DISABLED",
"TURBOPACK_STATS"
"TURBOPACK_STATS",
"ENABLE_EXPERIMENTAL_COREPACK"
]
},
"start": {
Expand Down Expand Up @@ -134,7 +135,15 @@
},
"build:blog-data": {
"inputs": ["{pages}/**/*.{mdx,md}"],
"outputs": ["public/blog-data.json"]
"outputs": ["public/blog-data.json"],
"env": [
"VERCEL_ENV",
"VERCEL_URL",
"TURBO_CACHE",
"TURBO_TELEMETRY_DISABLED",
"TURBOPACK_STATS",
"ENABLE_EXPERIMENTAL_COREPACK"
]
},
"cloudflare:build:worker": {
"dependsOn": ["build:blog-data"],
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,19 @@
"dependencies": {
"husky": "9.1.7",
"lint-staged": "16.2.3",
"turbo": "2.5.8"
"turbo": "2.6.1"
},
"devDependencies": {
"@eslint/js": "~9.36.0",
"@reporters/github": "^1.11.0",
"@testing-library/react": "~16.3.0",
"cross-env": "^10.0.0",
"cross-env": "^10.1.0",
"eslint": "~9.36.0",
"eslint-import-resolver-typescript": "~4.4.4",
"eslint-plugin-import-x": "~4.16.1",
"globals": "^16.4.0",
"globals": "^16.5.0",
"prettier": "3.6.2",
"prettier-plugin-tailwindcss": "0.7.1",
"prettier-plugin-tailwindcss": "0.7.2",
"typescript": "catalog:",
"typescript-eslint": "~8.45.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/i18n/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@node-core/website-i18n",
"version": "1.1.12",
"version": "1.1.13",
"type": "module",
"exports": {
"./*": [
Expand Down
12 changes: 2 additions & 10 deletions packages/i18n/src/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,6 @@
"npmVersion": "npmのバージョン",
"v8Version": "V8のバージョン"
},
"pagination": {
"next": "次へ",
"previous": "前へ"
},
"common": {
"alertBox": {
"info": "補足",
Expand All @@ -250,17 +246,13 @@
"breadcrumbs": {
"navigateToHome": "ホームに移動する"
},
"crossLink": {
"previous": "前へ",
"next": "次へ"
},
"codebox": {
"copy": "クリップボードにコピー",
"copied": "クリップボードにコピーされました!"
},
"pagination": {
"prev": "前へ",
"prevAriaLabel": "前のページ",
"previous": "前へ",
"previousAriaLabel": "前のページ",
"next": "次へ",
"nextAriaLabel": "次のページ",
"defaultLabel": "ページネーション",
Expand Down
Loading
Loading