import type { NextConfig } from "next"; const nextConfig: NextConfig = { turbopack: { root: process.cwd(), }, allowedDevOrigins: ['paymug.dev'], async rewrites() { return [ { source: "/buy/:id", destination: "/p/:id", }, ]; }, async redirects() { return [ { source: "/pages/:slug", destination: "/:slug", permanent: true, }, ]; }, }; export default nextConfig; // Enable calling `getCloudflareContext()` in `next dev`. // See https://opennext.js.org/cloudflare/bindings#local-access-to-bindings. import { initOpenNextCloudflareForDev } from "@opennextjs/cloudflare"; initOpenNextCloudflareForDev();