-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.ts
More file actions
31 lines (25 loc) · 847 Bytes
/
next.config.ts
File metadata and controls
31 lines (25 loc) · 847 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
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
// Redirect /questions to / (DevFlow serves questions list at root)
async redirects() {
return [
{
source: "/questions",
destination: "/",
permanent: true,
},
];
},
reactCompiler: true,
// Position Next.js dev indicator (route type, cache status) away from left sidebar
devIndicators: {
position: "bottom-right",
},
// Enables "use cache" directive, cacheLife(), cacheTag(), and Partial Prerendering.
// Routes are dynamic by default; use "use cache" to opt into caching.
cacheComponents: true,
// TypeScript validates <Link href> and router.push() against actual routes.
// Catches typos at build time - no manual routes constants file needed.
typedRoutes: true,
};
export default nextConfig;