-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathnext.config.mjs
More file actions
35 lines (32 loc) · 821 Bytes
/
Copy pathnext.config.mjs
File metadata and controls
35 lines (32 loc) · 821 Bytes
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
import { withContentlayer } from "next-contentlayer2";
import { default as createNextIntlPlugin } from 'next-intl/plugin';
const withNextIntl = createNextIntlPlugin();
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
images: {
remotePatterns: [
{
protocol: "https",
hostname: "avatars.githubusercontent.com",
},
{
protocol: "https",
hostname: "lh3.googleusercontent.com",
},
{
protocol: "https",
hostname: "randomuser.me",
},
],
},
experimental: {
serverComponentsExternalPackages: ["@prisma/client"],
},
typescript: {
ignoreBuildErrors: true,
},
};
// Properly chain both plugins together
export default withNextIntl(withContentlayer(nextConfig));