-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnext.config.ts
More file actions
36 lines (30 loc) · 967 Bytes
/
next.config.ts
File metadata and controls
36 lines (30 loc) · 967 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
36
import { NextConfig } from 'next';
import createMDX from '@next/mdx';
import { withSentryConfig } from '@sentry/nextjs';
const s3Url = process.env.PUBLIC_S3_BASE_URL;
const nextConfig: NextConfig = {
distDir: process.env.BUILD_DIR || '.next',
reactStrictMode: true,
pageExtensions: ['js', 'jsx', 'md', 'mdx', 'ts', 'tsx'],
images: {
// Album art s3 buckets
remotePatterns: [
new URL('https://maps-dev.paradb.net/albumArt/**'),
new URL('https://maps.paradb.net/albumArt/**'),
...(s3Url ? [new URL(s3Url + '/albumArt/**')] : []),
],
},
};
const withMDX = createMDX({});
module.exports = withSentryConfig(withMDX(nextConfig), {
org: 'bitnimble',
project: 'paradb',
// Suppresses source map uploading logs during build
silent: true,
authToken: process.env.SENTRY_AUTH_TOKEN,
// TODO: enable tunnelling for adblock?
bundleSizeOptimizations: {
excludeTracing: true,
excludeDebugStatements: true,
},
});