mirror of
https://github.com/formbricks/formbricks.git
synced 2026-05-08 06:41:45 -05:00
fix: downgrade nextjs to fix error with react email (#1516)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { NextRequest } from "next/server";
|
||||
import { ImageResponse } from "next/og";
|
||||
import { ImageResponse, NextRequest } from "next/server";
|
||||
/* import { NextRequest } from "next/server";
|
||||
import { ImageResponse } from "next/og"; */
|
||||
// App router includes @vercel/og.
|
||||
// No need to install it.
|
||||
|
||||
|
||||
@@ -50,13 +50,14 @@ export async function generateMetadata({ params }: LinkSurveyPageProps): Promise
|
||||
const brandColor = getBrandColorForURL(product.brandColor);
|
||||
const surveyName = getNameForURL(survey.name);
|
||||
|
||||
const ogImgURL = `${WEBAPP_URL}/api/v1/og?brandColor=${brandColor}&name=${surveyName}`;
|
||||
const ogImgURL = `/api/v1/og?brandColor=${brandColor}&name=${surveyName}`;
|
||||
|
||||
return {
|
||||
metadataBase: new URL(WEBAPP_URL),
|
||||
openGraph: {
|
||||
title: survey.name,
|
||||
description: "Create your own survey like this with Formbricks' open source survey suite.",
|
||||
url: `${WEBAPP_URL}/${survey.id}`,
|
||||
url: `/s/${survey.id}`,
|
||||
siteName: "",
|
||||
images: [ogImgURL],
|
||||
locale: "en_US",
|
||||
|
||||
Reference in New Issue
Block a user