-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.ts
More file actions
70 lines (66 loc) · 1.78 KB
/
Copy pathnext.config.ts
File metadata and controls
70 lines (66 loc) · 1.78 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import "./src/env.js";
import createNextIntlPlugin from "next-intl/plugin";
import createMDX from "@next/mdx";
import type { NextConfig } from "next";
/** @type {NextConfig} */
const config: NextConfig = {
output: "standalone",
// Any route here that should exclude the huge .next/cache directory
outputFileTracingExcludes: {
"/[locale]/tech/[slug]": ["./.next/cache/**/*"],
"/[locale]/blog/[slug]": ["./.next/cache/**/*"],
"/[locale]/photo/[slug]": ["./.next/cache/**/*"],
"/[locale]/blog": ["./.next/cache/**/*"],
"/[locale]/photo": ["./.next/cache/**/*"],
"/[locale]/tech": ["./.next/cache/**/*"],
},
pageExtensions: ["js", "jsx", "mdx", "ts", "tsx"],
images: {
remotePatterns: [
{
protocol: "https" as const,
hostname: "github.com",
pathname: "/**",
},
{
protocol: "https" as const,
hostname: "eric-p.gitbook.io",
pathname: "/**",
},
{
protocol: "https" as const,
hostname: "avatars.githubusercontent.com",
pathname: "/**",
},
{
protocol: "https" as const,
hostname: "snapfilething.homeserver-ericp.fr",
pathname: "/uploads/**",
},
{
protocol: "https" as const,
hostname: "live.staticflickr.com",
pathname: "/**",
},
{
protocol: "https" as const,
hostname: "skillicons.dev",
pathname: "/icons/**",
},
{
protocol: "https" as const,
hostname: "upload.wikimedia.org",
pathname: "/**",
},
] as const,
dangerouslyAllowSVG: true,
},
};
const withMDX = createMDX({
options: {
remarkPlugins: [],
rehypePlugins: [],
},
});
const withNextIntl = createNextIntlPlugin();
export default withNextIntl(withMDX(config));