-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.mjs
More file actions
43 lines (41 loc) · 1.15 KB
/
next.config.mjs
File metadata and controls
43 lines (41 loc) · 1.15 KB
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
import { withSentryConfig } from "@sentry/nextjs";
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
remotePatterns: [
{ protocol: "https", hostname: "orcid.org", pathname: "/**" },
{ protocol: "https", hostname: "websitelaunches.com", pathname: "/**" },
],
},
async redirects() {
return [
{
source: "/:path*",
has: [{ type: "host", value: "arnob-mahmud.vercel.app" }],
destination: "https://www.arnobmahmud.com/:path*",
permanent: true, // 308 - tells Google this is the canonical URL
},
{
source: "/:path*",
has: [{ type: "host", value: "arnobmahmud.com" }],
destination: "https://www.arnobmahmud.com/:path*",
permanent: true, // 308 - tells Google this is the canonical URL
},
];
},
};
export default withSentryConfig(
nextConfig,
{
silent: true,
org: process.env.SENTRY_ORG,
project: process.env.SENTRY_PROJECT,
// Tunnel Sentry through our domain so ad blockers don't block it
tunnelRoute: "/monitoring",
},
{
widenClientFileUpload: true,
hideSourceMaps: true,
disableLogger: true,
}
);