fix: downgrade nextjs to fix error with react email (#1516)

This commit is contained in:
Matti Nannt
2023-10-30 11:32:14 +01:00
committed by GitHub
parent dcefbc96cd
commit ccfd5ae28b
7 changed files with 330 additions and 180 deletions
+3 -2
View File
@@ -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.
+3 -2
View File
@@ -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",