-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.ts
45 lines (42 loc) · 898 Bytes
/
next.config.ts
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
import { NextConfig } from "next"
import createMDX from "@next/mdx"
const withMDX = createMDX({
options: {
remarkPlugins: [
["gray-matter", { strict: true, throwOnError: true }],
["remark-frontmatter", { strict: true, throwOnError: true }],
],
rehypePlugins: [],
},
})
const nextConfig: NextConfig = {
transpilePackages: ["next-mdx-remote"],
experimental: {
ppr: "incremental",
},
logging: {
fetches: {
fullUrl: true,
},
},
pageExtensions: ["mdx", "ts", "tsx"],
images: {
remotePatterns: [
{
protocol: "https",
hostname: "res.cloudinary.com",
port: "",
pathname: "/muhrusdi/**",
},
],
},
async rewrites() {
return [
{
source: "/api/v1/:path*",
destination: "https://api.themoviedb.org/3/:path*",
},
]
},
}
export default withMDX(nextConfig)