-
Notifications
You must be signed in to change notification settings - Fork 988
Expand file tree
/
Copy pathnext.config.js
More file actions
37 lines (35 loc) · 857 Bytes
/
next.config.js
File metadata and controls
37 lines (35 loc) · 857 Bytes
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
const { withContentCollections } = require("@content-collections/next");
const { redirects } = require("./redirects");
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
eslint: {
ignoreDuringBuilds: true,
},
typescript: {
ignoreBuildErrors: true,
},
images: {
remotePatterns: [
{ protocol: 'https', hostname: 'railway.com' },
{ protocol: 'https', hostname: 'res.cloudinary.com' },
{ protocol: 'https', hostname: 'devicons.railway.com' },
],
},
async redirects() {
return redirects;
},
async rewrites() {
return [
{
source: "/llms.txt",
destination: "/api/llms.txt",
},
{
source: "/llms-full.txt",
destination: "/api/llms-docs.md",
},
];
},
};
module.exports = withContentCollections(nextConfig);