Allow Feed URL to be parsed with Craft::parseEnv() #1021
Unanswered
jamesmacwhite
asked this question in
Ideas
Replies: 2 comments 3 replies
-
Aliases are supported, but not env var's I don't think. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@angrybrad Any thoughts on this, can we use ENV variables for feed URLs? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
There might be some use cases where the Feed URL field could benefit from being environment variable aware. Here's a couple of use cases:
You have a staging and live environment which use a different feed endpoint per environment and you want to be able to set this without having to modify the feed properties or use a module and call a custom event i.e.
EVENT_BEFORE_FETCH_FEED
A feed that may require a sensitive token, which you don't want in plain text and instead as a env var e.g.
http://examplesite.com/feed/data.json?token=$MY_SECRET_TOKEN
Currently you would have to use a module with a custom event to modify the feedUrl, as well as manually parse any env var to pass to Feed Me.
Beta Was this translation helpful? Give feedback.
All reactions