jason-ash / jtash

personal website at www.jtash.com
https://www.jtash.com
2 stars 0 forks source link

get full site url dynamically #39

Open jason-ash opened 2 years ago

jason-ash commented 2 years ago

Twitter cards (#22) won't work properly unless image paths are full paths. I think there's a way to use vite to get the full path. This issue would be closed by creating a website.ts file in lib that contains all the metadata, such as fullUrl that can be referenced elsewhere, like in the Twitter card components.

import.meta.env.VITE_SITE_URL