42 lines
956 B
JavaScript
42 lines
956 B
JavaScript
import million from "million/compiler";
|
|
import createMDX from "@next/mdx";
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
pageExtensions: ["js", "jsx", "md", "mdx", "ts", "tsx"],
|
|
experimental: {
|
|
reactCompiler: true,
|
|
ppr: "incremental",
|
|
},
|
|
serverExternalPackages: ["typeorm", "better-sqlite3"],
|
|
reactStrictMode: true,
|
|
output: "standalone",
|
|
images: {
|
|
remotePatterns: [
|
|
{
|
|
protocol: "https",
|
|
hostname: "fly.storage.tigris.dev",
|
|
},
|
|
],
|
|
},
|
|
typescript: {
|
|
// !! WARN !!
|
|
// Dangerously allow production builds to successfully complete even if
|
|
// your project has type errors.
|
|
// !! WARN !!
|
|
ignoreBuildErrors: true,
|
|
},
|
|
};
|
|
|
|
const millionConfig = {
|
|
auto: { rsc: true },
|
|
rsc: true,
|
|
};
|
|
|
|
const withMDX = createMDX({
|
|
// Add markdown plugins here, as desired
|
|
});
|
|
|
|
// export default withMDX(million.next(nextConfig, millionConfig));
|
|
export default withMDX(nextConfig);
|