-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnext.config.mjs
More file actions
31 lines (26 loc) · 816 Bytes
/
Copy pathnext.config.mjs
File metadata and controls
31 lines (26 loc) · 816 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 bundleAnalyzer from '@next/bundle-analyzer'
import { pickPostgresUrl } from './scripts/resolve-database-env.mjs'
const _pg = pickPostgresUrl()
if (_pg && !process.env.DATABASE_URL?.trim()) {
process.env.DATABASE_URL = _pg
}
const withBundleAnalyzer = bundleAnalyzer({
enabled: process.env.ANALYZE === 'true',
})
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'standalone',
transpilePackages: ['ical.js'],
serverExternalPackages: ['pg', 'better-sqlite3'],
outputFileTracingIncludes: {
'/*': ['./drizzle/**/*', './styles/theme-presets/**/*'],
},
typescript: {
ignoreBuildErrors: false,
},
images: {
unoptimized: true,
qualities:[80,90,100,70,60] // maybe someone Really prefer to use under 60?
},
}
export default withBundleAnalyzer(nextConfig)