-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathnext.config.js
More file actions
138 lines (137 loc) · 3.59 KB
/
next.config.js
File metadata and controls
138 lines (137 loc) · 3.59 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
/** @type {import('next').NextConfig} */
const nextConfig = {
pageExtensions: ["js", "jsx", "ts", "tsx"],
transpilePackages: ["shiki"],
eslint: {
// Warning: This allows production builds to successfully complete even if
// your project has ESLint errors/warnings.
ignoreDuringBuilds: true,
},
images: {
remotePatterns: [
{
protocol: "https",
hostname: "service.firecrawl.dev",
pathname: "/storage/v1/object/public/media/**",
},
{
protocol: "https",
hostname: "storage.googleapis.com",
pathname: "/firecrawl-scrape-media/**",
},
{
protocol: "https",
hostname: "og-image.vercel.app",
pathname: "/**",
},
{
protocol: "https",
hostname: "github.com",
pathname: "/**",
},
{
protocol: "https",
hostname: "opengraph.githubassets.com",
pathname: "/**",
},
{
protocol: "https",
hostname: "avatars.githubusercontent.com",
pathname: "/**",
},
],
},
async redirects() {
return [
{
source: "/fire-enrich",
destination: "/blog/fire-enrich",
permanent: true,
},
{
source: "/firestarter",
destination: "/blog/firestarter-rag-chatbot-generator",
permanent: true,
},
{
source: "/deep-research",
destination: "/blog/deep-research-api",
permanent: true,
},
{
source: "/fireplexity",
destination: "/blog/introducing-fireplexity-open-source-answer-engine",
permanent: true,
},
// Blog category redirects
{
source: "/blog/category/tutorials",
destination: "/blog/category/use-cases-and-examples",
permanent: true,
},
{
source: "/blog/category/Tutorials",
destination: "/blog/category/use-cases-and-examples",
permanent: true,
},
// Redirect old encoded URLs to new human-readable ones
{
source: "/blog/category/Use%20Cases%20%26%20Examples",
destination: "/blog/category/use-cases-and-examples",
permanent: true,
},
{
source: "/blog/category/Product%20Updates",
destination: "/blog/category/product-updates",
permanent: true,
},
{
source: "/blog/category/Customer%20Stories",
destination: "/blog/category/customer-stories",
permanent: true,
},
{
source: "/blog/category/Web%20Extraction%20Mastery",
destination: "/blog/category/web-extraction-mastery",
permanent: true,
},
{
source: "/blog/category/AI%20Engineering",
destination: "/blog/category/ai-engineering",
permanent: true,
},
{
source: "/blog/category/Workflows%20%26%20Automation",
destination: "/blog/category/workflows-and-automation",
permanent: true,
},
];
},
async headers() {
return [
{
// Apply headers to all routes
source: "/:path*",
headers: [
{
key: "X-Frame-Options",
value: "DENY", // Prevents framing
},
{
key: "X-Content-Type-Options",
value: "nosniff", // Disables MIME sniffing
},
{
key: "Referrer-Policy",
value: "strict-origin-when-cross-origin", // Limits referrer info
},
{
key: "Permissions-Policy",
value: "geolocation=(self)",
},
],
},
];
},
};
module.exports = nextConfig;