-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnext.config.js
More file actions
34 lines (29 loc) · 839 Bytes
/
next.config.js
File metadata and controls
34 lines (29 loc) · 839 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
const { withContentCollections } = require("@content-collections/next");
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
// Enable React Compiler for automatic memoization
reactCompiler: true,
images: {
remotePatterns: [
{
protocol: "https",
hostname: "*.public.blob.vercel-storage.com",
},
],
},
async rewrites() {
return [
{
source: "/talks/:slug",
destination: "/static/talks/:slug/index.html",
},
{
source: "/talks/assets/:path*",
destination: "/static/talks/cityjs-lagos-2023/assets/:path*",
// This isnt stabe, I cant add a different talk slide because it will link to the same path as CityJS Lagos 2023
},
];
},
};
module.exports = withContentCollections(nextConfig);