import type { NextConfig } from 'next' const withPWA = require("@ducanh2912/next-pwa").default({ dest: "public", register: true, skipWaiting: true, disable: process.env.NODE_ENV === "development", }); const nextConfig: NextConfig = { reactStrictMode: true, // * Enable standalone output for production deployment output: 'standalone', // * Privacy-first: Disable analytics and telemetry productionBrowserSourceMaps: false, images: { remotePatterns: [ { protocol: 'https', hostname: 'www.google.com', pathname: '/s2/favicons**', }, ], }, async redirects() { return [ { source: '/dashboard', destination: '/', permanent: false, }, ] }, async rewrites() { return [ { source: '/docs', destination: 'https://ciphera-e9ed055e.mintlify.dev/docs', }, { source: '/docs/:path*', destination: 'https://ciphera-e9ed055e.mintlify.dev/docs/:path*', }, ] }, } export default withPWA(nextConfig)