mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
Some checks failed
all-good: Did all the other checks pass? / all-good (push) Has been cancelled
Ensure Prisma migrations are in sync with the schema / check_prisma_migrations (22.x) (push) Has been cancelled
Docker Emulator Test / docker (push) Has been cancelled
Docker Server Build and Push / Docker Build and Push Server (push) Has been cancelled
Docker Server Test / docker (push) Has been cancelled
Runs E2E API Tests / build (22.x) (push) Has been cancelled
Lint & build / lint_and_build (latest) (push) Has been cancelled
Dev Environment Test / restart-dev-and-test (push) Has been cancelled
Run setup tests / setup-tests (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
<!-- Adds llms.txt compatibility to the docs pages. --> --------- Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com> Co-authored-by: Madison Kennedy <madison@Madisons-MacBook-Pro.local> Co-authored-by: BilalG1 <bg2002@gmail.com>
50 lines
1.2 KiB
JavaScript
50 lines
1.2 KiB
JavaScript
import { createMDX } from 'fumadocs-mdx/next';
|
|
|
|
const withMDX = createMDX();
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const config = {
|
|
reactStrictMode: true,
|
|
eslint: {
|
|
// Temporarily disable ESLint during builds for Vercel deployment
|
|
ignoreDuringBuilds: true,
|
|
},
|
|
// Include OpenAPI files in output tracing for Vercel deployments
|
|
outputFileTracingIncludes: {
|
|
'/api/**/*': ['./openapi/**/*'],
|
|
'/**/*': ['./openapi/**/*'],
|
|
},
|
|
async redirects() {
|
|
return [
|
|
// Redirect /docs/api to the overview page
|
|
{
|
|
source: '/docs/api',
|
|
destination: '/docs/api/overview',
|
|
permanent: false,
|
|
},
|
|
];
|
|
},
|
|
async rewrites() {
|
|
return [
|
|
// Redirect .mdx requests to the llms.mdx route handler
|
|
{
|
|
source: '/docs/:path*.mdx',
|
|
destination: '/llms.mdx/:path*',
|
|
},
|
|
{
|
|
source: '/api/:path*.mdx',
|
|
destination: '/llms.mdx/:path*',
|
|
},
|
|
// Serve OpenAPI files from the openapi directory
|
|
{
|
|
source: '/openapi/:path*',
|
|
destination: '/openapi/:path*',
|
|
},
|
|
// No other rewrites needed for API docs - they're served directly from /docs/api/*
|
|
];
|
|
},
|
|
};
|
|
|
|
export default withMDX(config);
|
|
|