mirror of
https://github.com/privacy-scaling-explorations/pse.dev.git
synced 2026-04-23 03:01:03 -04:00
fix base url without URL
This commit is contained in:
@@ -37,10 +37,7 @@ export async function generateMetadata(
|
||||
const BASE_URL =
|
||||
process.env.NODE_ENV === "production" ? "https://pse.dev" : "."
|
||||
|
||||
const customImage = `${BASE_URL}/${currProject.image}`.replace(
|
||||
"//pse.dev//",
|
||||
"//pse.dev/"
|
||||
) // prevent double slashes
|
||||
const customImage = `${BASE_URL}/${currProject.image}`
|
||||
|
||||
const imageUrl =
|
||||
currProject?.image?.length > 0 ? customImage : `${BASE_URL}/og-image.png`
|
||||
|
||||
Reference in New Issue
Block a user