mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-08 11:37:25 +00:00
trying VERCEL_URL in getPropertymeta
This commit is contained in:
parent
234c9c53a8
commit
52cb8790a6
2 changed files with 2 additions and 1 deletions
|
|
@ -4,7 +4,8 @@ export async function getPropertyMeta(
|
|||
propertyId: string
|
||||
): Promise<PropertyMeta> {
|
||||
const url =
|
||||
process.env.URL + `/api/building-passport/property-meta/${propertyId}`;
|
||||
(process.env.URL || process.env.VERCEL_URL) +
|
||||
`/api/building-passport/property-meta/${propertyId}`;
|
||||
|
||||
const response = await fetch(url, {
|
||||
method: "GET",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue