-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
44 lines (42 loc) · 860 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
40
41
42
43
44
/** @type {import('next').NextConfig} */
const nextConfig = {
pageExtensions: ["mdx", "md", "jsx", "js", "tsx", "ts"],
experimental: {
typedRoutes: true,
mdxRs: true,
},
images: {
remotePatterns: [
{
protocol: "https",
hostname: "static-ourstore.hyperfunctor.com",
},
],
},
redirects: async () => {
return [
{
source: "/categories/t-shirts",
destination: "/categories/t-shirts/1",
permanent: false,
},
{
source: "/categories/accessories",
destination: "/categories/accessories/1",
permanent: false,
},
{
source: "/categories/hoodies",
destination: "/categories/hoodies/1",
permanent: false,
},
{
source: "/products",
destination: "/products/1",
permanent: false,
},
];
},
};
const withMDX = require("@next/mdx")();
module.exports = withMDX(nextConfig);