init
This commit is contained in:
30
next.config.mjs
Normal file
30
next.config.mjs
Normal file
@@ -0,0 +1,30 @@
|
||||
import createNextIntlPlugin from "next-intl/plugin";
|
||||
|
||||
const withNextIntl = createNextIntlPlugin();
|
||||
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
// output: "export",
|
||||
output: "standalone",
|
||||
images: {
|
||||
remotePatterns: [
|
||||
...(process.env.R2_PUBLIC_URL
|
||||
? [
|
||||
{
|
||||
hostname: process.env.R2_PUBLIC_URL.replace("https://", ""),
|
||||
},
|
||||
]
|
||||
: []),
|
||||
],
|
||||
},
|
||||
compiler: {
|
||||
removeConsole:
|
||||
process.env.NODE_ENV === "production"
|
||||
? {
|
||||
exclude: ["error"],
|
||||
}
|
||||
: false,
|
||||
},
|
||||
};
|
||||
|
||||
export default withNextIntl(nextConfig);
|
||||
Reference in New Issue
Block a user