Skip to content

Commit a55fb28

Browse files
committed
middleware -> proxy
1 parent bf6df89 commit a55fb28

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

next.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ const isDev = process.env.NODE_ENV === 'development';
44

55
const nextConfig: NextConfig = {
66
output: 'standalone',
7+
cacheComponents: true,
8+
// redefine the stock 'hours' profile in dev so its TTL = 0
9+
cacheLife: isDev ? { hours: { stale: 0, revalidate: 1, expire: 1 } } : undefined,
710
experimental: {
811
useCache: true,
9-
cacheComponents: true,
10-
// redefine the stock 'hours' profile in dev so its TTL = 0
11-
cacheLife: isDev ? { hours: { stale: 0, revalidate: 1, expire: 1 } } : undefined,
1212
},
1313
images: {
1414
remotePatterns: [{ protocol: 'https', hostname: 'avatars.githubusercontent.com' }],

middleware.ts renamed to proxy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ import NextAuth from 'next-auth';
22

33
import authConfig from './auth.config';
44

5-
export const { auth: middleware } = NextAuth(authConfig);
5+
export const { auth: proxy } = NextAuth(authConfig);

0 commit comments

Comments
 (0)