Something went wrong. Try again.
a tool for shared writing and social publishing
Something went wrong. Try again.
leaflet next.config.js
1.2 kB · 51 lines
JavaScript
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152// @ts-check
/** @type {import('next').NextConfig} */const nextConfig = { turbopack: { resolveExtensions: [".mdx", ".tsx", ".ts", ".jsx", ".js", ".mjs", ".json"], }, allowedDevOrigins: ["localhost", "127.0.0.1"], webpack: (config) => { config.resolve.extensionAlias = { ".js": [".ts", ".tsx", ".js"], };
return config; }, async rewrites() { return [ { source: "/potluck", destination: "/template/5465909f-7a19-4873-b796-0c6be3ec9f04", }, ]; }, pageExtensions: ["js", "jsx", "ts", "tsx", "md", "mdx"], images: { loader: "custom", loaderFile: "./supabase/supabase-image-loader.js", remotePatterns: [ { protocol: "http", hostname: "127.0.0.1", port: "54321" }, { protocol: "https", hostname: "bdefzwcumgzjwllsnaej.supabase.co" }, ], }, experimental: { reactCompiler: true, serverActions: { bodySizeLimit: "5mb", }, staleTimes: { dynamic: 600, static: 600, }, },};
const withMDX = require("@next/mdx")({ extension: /\.mdx?$/,});const withBundleAnalyzer = require("@next/bundle-analyzer")({ enabled: process.env.ANALYZE === "true",});module.exports = withBundleAnalyzer(withMDX(nextConfig));