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 = {
|
2022-04-10 23:05:42 -04:00
|
|
|
reactStrictMode: true,
|
|
|
|
experimental: {
|
2022-11-09 01:14:43 -05:00
|
|
|
// esmExternals: true,
|
2022-12-17 19:22:29 -05:00
|
|
|
appDir: true,
|
|
|
|
serverComponentsExternalPackages: ['prisma'],
|
2022-04-10 23:05:42 -04:00
|
|
|
},
|
2022-12-04 17:49:18 -05:00
|
|
|
output: "standalone",
|
|
|
|
async rewrites() {
|
|
|
|
return [
|
|
|
|
{
|
|
|
|
source: "/file/raw/:id",
|
|
|
|
destination: `/api/raw/:id`
|
|
|
|
},
|
|
|
|
{
|
|
|
|
source: "/home",
|
|
|
|
destination: "/"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2022-12-04 04:31:51 -05:00
|
|
|
|
2022-03-23 18:34:23 -04:00
|
|
|
}
|
2022-03-06 19:46:59 -05:00
|
|
|
|
2022-03-21 23:30:45 -04:00
|
|
|
export default bundleAnalyzer({ enabled: process.env.ANALYZE === "true" })(
|
2022-04-10 23:05:42 -04:00
|
|
|
nextConfig
|
2022-03-23 18:34:23 -04:00
|
|
|
)
|