fixed twenty website build (#5174)
Made code compile during build even when then environment variable is not yet available Co-authored-by: Ady Beraud <a.beraud96@gmail.com>
This commit is contained in:
@ -9,6 +9,8 @@ export interface ReleaseNote {
|
||||
content: string;
|
||||
}
|
||||
|
||||
export const dynamic = 'force-dynamic';
|
||||
|
||||
export async function GET(request: NextRequest) {
|
||||
const host = request.nextUrl.hostname;
|
||||
const protocol = request.nextUrl.protocol;
|
||||
|
||||
@ -16,6 +16,8 @@ export const metadata: Metadata = {
|
||||
'Discover the newest features and improvements in Twenty, the #1 open-source CRM.',
|
||||
};
|
||||
|
||||
export const dynamic = 'force-dynamic';
|
||||
|
||||
const Home = async () => {
|
||||
const releases = await getReleases();
|
||||
const mdxReleasesContent = await getMdxReleasesContent(releases);
|
||||
|
||||
Reference in New Issue
Block a user