-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.ts
More file actions
34 lines (32 loc) · 900 Bytes
/
next.config.ts
File metadata and controls
34 lines (32 loc) · 900 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
import type { NextConfig } from 'next'
const nextConfig: NextConfig = {
/* config options here */
typedRoutes: true,
output: 'standalone',
typescript: {
ignoreBuildErrors: true,
},
// Note: eslint config is no longer supported in next.config.ts in Next.js 16
// Configure ESLint directly in .eslintrc.json or eslint.config.js instead
trailingSlash: false,
// Compress responses
compress: true,
// Externalize server-only packages that use Node.js APIs
serverExternalPackages: ['undifferent', 'word-extractor', 'unpdf'],
// Redirects
async redirects() {
return [
{
source: '/ppb2027',
destination: 'https://mandate-housekeeping.un-two-zero.dev/',
permanent: true,
},
{
source: '/diff',
destination: 'https://diff.un-two-zero.dev/',
permanent: true,
},
]
},
}
export default nextConfig