7582c64709
Standalone Next output, migration script run on start, storage volume at /app/storage, port 4700. Database connection is created lazily so the image builds without a database.
28 lines
652 B
TypeScript
28 lines
652 B
TypeScript
import type { NextConfig } from 'next'
|
|
import createNextIntlPlugin from 'next-intl/plugin'
|
|
|
|
const config: NextConfig = {
|
|
output: 'standalone',
|
|
outputFileTracingIncludes: {
|
|
'/api/v1/style-guide': ['./docs/style-guide.md'],
|
|
'/': ['./node_modules/drizzle-orm/**'],
|
|
},
|
|
typedRoutes: true,
|
|
experimental: {
|
|
useTypeScriptCli: true,
|
|
serverActions: {
|
|
bodySizeLimit: '16mb',
|
|
},
|
|
},
|
|
images: {
|
|
formats: ['image/webp'],
|
|
deviceSizes: [480, 640, 960, 1200, 1600, 1920],
|
|
imageSizes: [96, 160, 240, 320],
|
|
minimumCacheTTL: 31536000,
|
|
},
|
|
}
|
|
|
|
const withNextIntl = createNextIntlPlugin('./src/i18n/request.ts')
|
|
|
|
export default withNextIntl(config)
|