Set up a volume using multiple domains without @web #10445
Unanswered
timrosskamp
asked this question in
Q&A
Replies: 1 comment 8 replies
-
As a quick hack, you can use |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to configure a local volume for multiple sites that each have their own domain. My goal is to use the same asset on different sites. But the links to the asset in the front-end should always use the sites domain in order to avoid cross-origin urls.
I've configured the base urls for the sites using environment variables, but for the volume base url this is not possible since the domain is not the same for different sites.
I could only achieve my goal by using
@web
in the volume base url. But this seems to be discouraged.What is the correct way to set this up?
Beta Was this translation helpful? Give feedback.
All reactions