Open u007 opened 4 years ago
i know i could do this with GRIDSOME_STRAPI_URL, but do i do this when im building the site? when i use this on building, it will ask for data from production url, so i cannot load this locally?
and also , shouldnt cloudinary images be cloudinary url?
@u007 It looks like you need to set a different GRIDSOME_STRAPI_URL
for the production build. The starter is prefixing all absolute URLs with it here: ./frontend/src/utils/medias.js
thank you, i guess its all pointed back to strapijs means its strapijs own path issue right? otherwise i will need to upload all public/uploads files into a cdn and point it there...
Description
duplicate https://gridsome.org/starters/gridsome-strapi-blog/ and tried to setup on production site but all images pointing to localhost:1337
even after setting up cloudinary and upload few images with the plugin, and saw the image on cloudinary, the build result for the frontend still resolve to localhost:1337
Steps to reproduce
add strapi plugin for cloudinary config/plugins.js
upload a image and replace both seo and image of one of the article to use uploaded image
npm run build and then deploy on fly.io
Expected result
images should point to cloudinary, even locally hosted image should point to backend url
Actual result
all pointing to localhost:1337
Environment