-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.mjs
41 lines (37 loc) · 935 Bytes
/
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
import { withAxiom } from 'next-axiom';
import withPlugins from 'next-compose-plugins';
import { withSentryConfig } from '@sentry/nextjs';
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'static.noroff.dev',
},
],
},
webpack: (config) => {
config.externals.push('@node-rs/argon2', '@node-rs/bcrypt');
return config;
},
experimental: {
ppr: true,
reactCompiler: true,
},
};
const sentryConfig = {
silent: !process.env.CI,
org: 'kyrre-gjerstad',
project: 'anshin',
widenClientFileUpload: true,
tunnelRoute: '/monitoring',
hideSourceMaps: true,
disableLogger: true,
automaticVercelMonitors: true,
};
const nextPlugins = [
(nextConfig) => withAxiom(nextConfig),
(nextConfig) => withSentryConfig(nextConfig, sentryConfig),
];
export default withPlugins(nextPlugins, nextConfig);