diff --git a/sites/public/src/pages/preview/listings/[id].tsx b/sites/public/src/pages/preview/listings/[id].tsx index d9b5d8c64d..f21aab89b5 100644 --- a/sites/public/src/pages/preview/listings/[id].tsx +++ b/sites/public/src/pages/preview/listings/[id].tsx @@ -45,12 +45,17 @@ export default function ListingPage(props: ListingProps) { } // eslint-disable-next-line @typescript-eslint/no-explicit-any -export async function getServerSideProps(context: { params: Record; req: any }) { +export async function getServerSideProps(context: { + params: Record + locale: string + req: any +}) { let response try { response = await axios.get(`${process.env.backendApiBase}/listings/${context.params.id}`, { headers: { + language: context.locale, passkey: process.env.API_PASS_KEY, "x-forwarded-for": context.req.headers["x-forwarded-for"] ?? context.req.socket.remoteAddress,