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
9 changes: 9 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!-- BEGIN:nextjs-agent-rules -->

# This is NOT the Next.js you know

This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in `node_modules/next/dist/docs/` (resolved from this file's directory; in monorepos the `next` package may not be visible from the repo root) before writing any code. Heed deprecation notices.

This block is written and re-added by `next dev` — verify at `node_modules/next/dist/server/lib/generate-agent-files.js`. Removing it from a diff only re-creates the uncommitted change; committing it with your work keeps the tree clean.

<!-- END:nextjs-agent-rules -->
1 change: 1 addition & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@AGENTS.md
26 changes: 20 additions & 6 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
/** @type {import('next').NextConfig} */

import createMDX from "@next/mdx";
import rehypeUnwrapImages from 'rehype-unwrap-images'
import remarkFrontmatter from 'remark-frontmatter'
import remarkGfm from 'remark-gfm'
import { remarkVersionSubstitution } from './scripts/remark-version-substitution.mjs'
import { fileURLToPath } from 'node:url'

const remarkVersionSubstitutionPath = fileURLToPath(
new URL('./scripts/remark-version-substitution.mjs', import.meta.url)
)

const nextConfig = {
pageExtensions: ['js', 'jsx', 'md', 'mdx', 'ts', 'tsx'],
Expand All @@ -29,6 +30,18 @@ const nextConfig = {
});
return config;
},
turbopack: {
rules: {
'*.yaml': {
loaders: ['yaml-loader'],
as: '*.js',
},
'*.yml': {
loaders: ['yaml-loader'],
as: '*.js',
},
},
},
images: {
remotePatterns: [
{
Expand All @@ -42,8 +55,9 @@ const nextConfig = {

const withMDX = createMDX({
options: {
remarkPlugins: [remarkFrontmatter, remarkGfm, remarkVersionSubstitution],
rehypePlugins: [rehypeUnwrapImages],
// Turbopack requires serializable options: plugins as name/path strings
remarkPlugins: ['remark-frontmatter', 'remark-gfm', remarkVersionSubstitutionPath],
rehypePlugins: ['rehype-unwrap-images'],
},
})

Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"@heroicons/react": "^2.2.0",
"@mdx-js/loader": "^3.1.1",
"@mdx-js/react": "^3.1.1",
"@next/mdx": "^15.5.4",
"@next/third-parties": "^15.5.4",
"@next/mdx": "^16.3.0",
"@next/third-parties": "^16.3.0",
"@radix-ui/react-dropdown-menu": "^2.1.16",
"@radix-ui/react-separator": "^1.1.7",
"@radix-ui/react-slot": "^1.2.3",
Expand Down
Loading
Loading