bpwalters
CDCloudflare Developers
•Created by bpwalters on 8/1/2023 in #pages-help
Trouble w/ relative images - Astro site on Pages
It helps if you don't include
public
in your .gitignore
...the directory wasn't being copied on the server because it only existed on my local machine!
As dumb as I feel now, I'm going to leave this here in case anyone else runs into a similar issue. Hopefully it saves someone some time/headache!4 replies
CDCloudflare Developers
•Created by bpwalters on 8/1/2023 in #pages-help
Trouble w/ relative images - Astro site on Pages
UPDATE: I tried deploying my site to Netlify, and noticed the same issue. They let you download the build artifacts and it appears that the entirety of my
public
folder is not being copied/grabbed when running npm run build
on the server.
This does not seem to be a Cloudflare Pages issue, specifically. Now I need to figure out why the build copies the public
files to dist
when running locally but not on a server...4 replies
CDCloudflare Developers
•Created by bpwalters on 8/1/2023 in #pages-help
Trouble w/ relative images - Astro site on Pages
4 replies