-
Notifications
You must be signed in to change notification settings - Fork 1
/
next.config.js
39 lines (37 loc) · 989 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
36
37
38
39
const withNextIntl = require("next-intl/plugin");
const withBundleAnalyzer = require("@next/bundle-analyzer")({
enabled: process.env.ANALYZE === "true",
});
/** @type {import('next').NextConfig} */
const nextConfig = withBundleAnalyzer(
withNextIntl("./lib/i18n.ts")({
images: {
unoptimized: true,
remotePatterns: [
{
hostname: "woh-cdn.coachbychamp.com",
},
],
},
redirects: async () => {
return [
{
source: "/img/:path*",
destination: "https://woh-cdn.coachbychamp.com/img/:path*",
permanent: true,
},
{
source: "/postcards/:path*",
destination: "https://woh-cdn.coachbychamp.com/postcards/:path*",
permanent: true,
},
{
source: "/sound/:path*",
destination: "https://woh-cdn.coachbychamp.com/sound/:path*",
permanent: true,
},
];
},
}),
);
module.exports = nextConfig;