Trying just URL again since vercel URL doesn't work nicely

This commit is contained in:
Khalim Conn-Kowlessar 2023-08-02 14:17:33 +01:00
parent a3b7de9873
commit eb72860b16

View file

@ -4,8 +4,7 @@ export async function getPropertyMeta(
propertyId: string
): Promise<PropertyMeta> {
const url =
(process.env.URL || process.env.VERCEL_URL) +
`/api/building-passport/property-meta/${propertyId}`;
process.env.URL + `/api/building-passport/property-meta/${propertyId}`;
const response = await fetch(url, {
method: "GET",