the main page of my site gets a little bio from GraphCMS. it works fine in the permalink, with
npm run dev and
npm run preview, but for some reason it does not work in the production deploy. when clicking “Home” in the nav bar and looking at the network tab i noticed it makes the correct post request in the permalink, but not in the production deploy for some reason.
i thought it was because of the endpoint being in my .env locally, but even after hardcoding it i’m still having this problem. i’m painfully new to svelte and netlify, so i’m not entirely sure where the problem could be coming from.
here’s the relevant links:
- preview: https://6293bce1eb4c560008796f72--soft-crisp-2e2dae.netlify.app/
- prod: https://master--soft-crisp-2e2dae.netlify.app
- github: GitHub - 01dog/01.dog
help would be appreciated!