-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
35 lines (29 loc) · 968 Bytes
/
next.config.js
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
/* eslint-disable @typescript-eslint/no-var-requires */
// This file sets a custom webpack configuration to use your Next.js app
const withBundleAnalyzer = require("@next/bundle-analyzer")({
enabled: process.env.ANALYZE === "true",
});
const withPWA = require("next-pwa");
/** @type {import('next').NextConfig} */
module.exports = withBundleAnalyzer(
withPWA({
reactStrictMode: true,
images: {
domains: ["i.scdn.co", "images.prismic.io", "images.unsplash.com"],
},
pwa: {
dest: "public",
disable: process.env.NODE_ENV === "development",
buildExcludes: [/middleware-manifest\.json$/],
},
})
);
// with Sentry.
// https://nextjs.org/docs/api-reference/next.config.js/introduction
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
const { withSentryConfig } = require("@sentry/nextjs");
module.exports = withSentryConfig(
module.exports,
{ silent: true },
{ hideSourcemaps: true }
);