23 lines
474 B
JavaScript
23 lines
474 B
JavaScript
import { withPayload } from '@payloadcms/next/withPayload'
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
images: {
|
|
domains: ['covers.openlibrary.org', 'cdn.beitzah.net'],
|
|
},
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: '/search',
|
|
destination: '/books',
|
|
},
|
|
{
|
|
source: '/profile',
|
|
destination: '/manage',
|
|
},
|
|
]
|
|
},
|
|
}
|
|
|
|
export default withPayload(nextConfig, { devBundleServerPackages: false })
|