20 lines
360 B
TypeScript
20 lines
360 B
TypeScript
import type { NextConfig } from 'next'
|
|
|
|
const nextConfig: NextConfig = {
|
|
transpilePackages: ['@innungsapp/shared'],
|
|
experimental: {
|
|
typedRoutes: true,
|
|
},
|
|
// Serve uploaded files
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: '/uploads/:path*',
|
|
destination: '/api/uploads/:path*',
|
|
},
|
|
]
|
|
},
|
|
}
|
|
|
|
export default nextConfig
|