mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-02-13 11:49:14 -06:00
27 lines
632 B
JavaScript
27 lines
632 B
JavaScript
const withNextra = require('nextra')({
|
|
theme: 'nextra-theme-docs',
|
|
themeConfig: './theme.config.tsx',
|
|
})
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
...withNextra(),
|
|
transpilePackages: ["react-tweet"],
|
|
async redirects() {
|
|
return [
|
|
{
|
|
source: '/:path((?!home|sdk|contributing|self-hosting|launches|blog|favicon\\.ico|hatchet_logo\\.png).*)',
|
|
destination: '/home/:path*',
|
|
permanent: true,
|
|
},
|
|
{
|
|
source: "/ingest/:path*",
|
|
destination: "https://app.posthog.com/:path*",
|
|
permanent: true,
|
|
},
|
|
];
|
|
},
|
|
}
|
|
|
|
module.exports = nextConfig
|