Replies: 1 comment 1 reply
-
👋Hello! Good to see you.
Then it is neccesary to match the name of *.ts file in custom-open-graph export const {getStaticPaths, get} = OGDynamicImageRoute({
// Tell us the name of your dynamic route segment.
// In this case it’s `slug`, because the file is named `slug.ts`.
param: 'slug',
// rest of code
... I would like to see your folder structure for futher improvements. Please show me nested directories of Its little bit confusing in README, so i will update it, I am grateful for this discussion |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey man 👋
Cool astro integration. I was trying to get this installed and working on a project of mine and was not able to get the images to load correctly. You'll have to excuse me because I'm still fairly new to Astro, anyway, each time I try and hit the route on my local server:
localhost:3000/custom-open-graph/html/introduction.png
I get a 404 response back.I've created a new file located at:
pages/custom-open-graph/html/[slug].ts
with the following contents:I've already added the image to my BaseHead file and everything loads up correctly, showing the
og:url
image ashttp://localhost:3000/custom-open-graph/html/introduction.png
; however, that just returns a 404.I have content stored inside of
/src/content/html/*.md
but for some reason the images do not display correctly. Let me know if you need any other info on my end.Let me know if you have any suggestions on how I can get this to work on my end :)
Really apprecaite it! Thanks.
Beta Was this translation helpful? Give feedback.
All reactions