CoastalCommitsPastes/next.config.mjs

30 lines
582 B
JavaScript
Raw Normal View History

2022-03-23 18:34:23 -04:00
import bundleAnalyzer from "@next/bundle-analyzer"
2022-03-08 02:09:30 -05:00
2022-03-06 19:46:59 -05:00
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
experimental: {
2022-11-09 01:14:43 -05:00
// esmExternals: true,
appDir: true,
2023-02-24 02:45:26 -05:00
serverComponentsExternalPackages: ["prisma", "@prisma/client"],
},
rewrites() {
2022-12-04 17:49:18 -05:00
return [
{
source: "/file/raw/:id",
destination: `/api/raw/:id`
},
]
},
images: {
domains: ["avatars.githubusercontent.com"]
},
env: {
2023-01-13 03:10:15 -05:00
NEXT_PUBLIC_DRIFT_URL: process.env.DRIFT_URL
}
2022-03-23 18:34:23 -04:00
}
2022-03-06 19:46:59 -05:00
export default bundleAnalyzer({ enabled: process.env.ANALYZE === "true" })(
nextConfig
2022-03-23 18:34:23 -04:00
)