CoastalCommitsPastes/client/next.config.mjs
2022-12-04 14:49:18 -08:00

28 lines
479 B
JavaScript

import bundleAnalyzer from "@next/bundle-analyzer"
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
experimental: {
// esmExternals: true,
appDir: true
},
output: "standalone",
async rewrites() {
return [
{
source: "/file/raw/:id",
destination: `/api/raw/:id`
},
{
source: "/home",
destination: "/"
}
]
}
}
export default bundleAnalyzer({ enabled: process.env.ANALYZE === "true" })(
nextConfig
)