Skip to content

Commit 2b74a1d

Browse files
merging all conflicts
2 parents 9067b76 + abe931a commit 2b74a1d

File tree

129 files changed

+2154
-219
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+2154
-219
lines changed

.eslintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"react-hooks/exhaustive-deps": "error",
1010
"react/no-unknown-property": ["error", {"ignore": ["meta"]}],
1111
"react-compiler/react-compiler": "error",
12-
"local-rules/lint-markdown-code-blocks": "error"
12+
"local-rules/lint-markdown-code-blocks": "error",
13+
"no-trailing-spaces": "error"
1314
},
1415
"env": {
1516
"node": true,

next.config.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,15 @@ const nextConfig = {
2222
async rewrites() {
2323
return {
2424
beforeFiles: [
25+
// Explicit .md extension also serves markdown
26+
{
27+
source: '/:path*.md',
28+
destination: '/api/md/:path*',
29+
},
2530
// Serve markdown when Accept header prefers text/markdown
2631
// Useful for LLM agents - https://www.skeptrune.com/posts/use-the-accept-header-to-serve-markdown-instead-of-html-to-llms/
2732
{
28-
source: '/:path((?!llms.txt).*)',
33+
source: '/:path((?!llms\\.txt|api/md).*)',
2934
has: [
3035
{
3136
type: 'header',
@@ -35,11 +40,6 @@ const nextConfig = {
3540
],
3641
destination: '/api/md/:path*',
3742
},
38-
// Explicit .md extension also serves markdown
39-
{
40-
source: '/:path*.md',
41-
destination: '/api/md/:path*',
42-
},
4343
],
4444
};
4545
},
4.13 KB
5.77 KB
2.9 KB
32.8 KB
38.7 KB
115 KB
17.7 KB
4.79 KB

0 commit comments

Comments
 (0)