fix: make sitemap dynamic to avoid DB calls during CI build
This commit is contained in:
parent
d75c489a68
commit
7bb293b6de
1 changed files with 3 additions and 0 deletions
|
|
@ -1,6 +1,9 @@
|
|||
import { prisma } from '@tpmjs/db';
|
||||
import type { MetadataRoute } from 'next';
|
||||
|
||||
// Force dynamic rendering to avoid database calls during build
|
||||
export const dynamic = 'force-dynamic';
|
||||
|
||||
/**
|
||||
* Dynamic sitemap that includes all pages and tools from the database
|
||||
* Automatically generated by Next.js at /sitemap.xml
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue