-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
54 lines (47 loc) · 1.63 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/** @type {import('next').NextConfig} */
// eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires
const { withSentryConfig } = require('@sentry/nextjs');
const sentryWebpackPluginOptions = {
// Additional config options for the Sentry Webpack plugin. Keep in mind that
// the following options are set automatically, and overriding them is not
// recommended:
// release, url, configFile, stripPrefix, urlPrefix, include, ignore
org: 'depromeet-13-7team',
project: 'dingdong',
// An auth token is required for uploading source maps.
// You can get an auth token from https://sentry.io/settings/account/api/auth-tokens/
// The token must have `project:releases` and `org:read` scopes for uploading source maps
authToken: process.env.SENTRY_AUTH_TOKEN,
silent: true, // Suppresses all logs
// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options.
};
const nextConfig = {
output: 'standalone',
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'cloudflare-ipfs.com',
port: '',
pathname: '/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/**',
},
{
protocol: 'https',
hostname: 'avatars.githubusercontent.com',
port: '',
pathname: '/u/**',
},
{
protocol: 'https',
hostname: 'depromeet-image-bucket.s3.ap-northeast-2.amazonaws.com',
port: '',
pathname: '/**',
},
],
},
sentry: {
hideSourceMaps: true,
},
};
module.exports = withSentryConfig(nextConfig, sentryWebpackPluginOptions);