-
-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
baseURL is not working #39
Comments
@ajankowy035 did you find a fix for this? Im also having issues |
no, I didn't find a fix for that. We found another way - using nginx on frontend - we created a redirection to the strapi app when it's calling /uploads |
Does anyone know the solution to this? |
@hypong Maybe you could try to transform the response with controller in strapi? controllers |
If anyone is wondering, adding a "url" property to the module under server.js (./config/server.js) in the Strapi folder did the trick, here is what the config looks like:
I tried both methods, and adding the baseURL property to the .config/api.js file did nothing. You could use process.env in a ternary condition if you want to have the url adjusted based on the server environment. |
Hi guys! I am currently working with strapi v4 and we have implemented this CKEditor which has great features. However I am facing a problem with this baseURL configuration which is not working properly IMO. Or I am doing something wrong.
So I provided changes according to your documentation:
My config/api.js
The result:
So after adding adding baseURL to config/api.js nothing is happening and sources for uploaded images inside text editor are not prefixed with provided URL.
Is there any possible solution for that issue?
The text was updated successfully, but these errors were encountered: