forked from yournextstore/yournextstore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.mjs
59 lines (54 loc) · 1.14 KB
/
next.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// @ts-check
import createNextIntlPlugin from "next-intl/plugin";
import MDX from "@next/mdx";
const withNextIntl = createNextIntlPlugin();
const withMDX = MDX();
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
eslint: {
ignoreDuringBuilds: true,
},
output: process.env.DOCKER ? "standalone" : undefined,
logging: {
fetches: {
fullUrl: true,
},
},
images: {
remotePatterns: [
{ hostname: "files.stripe.com" },
{ hostname: "d1wqzb5bdbcre6.cloudfront.net" },
{ hostname: "*.blob.vercel-storage.com" },
],
formats: ["image/avif", "image/webp"],
},
transpilePackages: ["next-mdx-remote", "commerce-kit"],
experimental: {
esmExternals: true,
mdxRs: true,
scrollRestoration: true,
ppr: true,
after: true,
reactCompiler: true,
},
webpack: (config) => {
return {
...config,
resolve: {
...config.resolve,
extensionAlias: {
".js": [".js", ".ts"],
".jsx": [".jsx", ".tsx"],
},
},
};
},
rewrites: async () => [
{
source: "/stats/:match*",
destination: "https://eu.umami.is/:match*",
},
],
};
export default withNextIntl(withMDX(nextConfig));