39 lines
902 B
TypeScript
39 lines
902 B
TypeScript
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,
|
|
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)
|