It can be useful when running frontend locally to point it to CODE CAPI. The easiest way to do this is probably to point it to the CODE deployment of concierge. (In PROD and CODE, frontend connects to CAPI through dedicated URLs that allow it to bypass kong, but those URLs are relatively locked down and hard to access from dev computers. Concierge requests go through Kong and so are accessible from the public internet but restricted using API keys.)
To do this, follow the instructions in 14-override-default-configuration, setting content.api.host
to the url for concierge-CODE (currently https://content.code.dev-guardianapis.com
), and content.api.key
to a valid internal-tier key for concierge-CODE.
If you have access to bonobo-CODE, you can create yourself a key there. If not, send Content Pipeline a message and they can create a key for you.
To give a complete example, here’s a redacted version of my ~/.gu/frontend.conf
from the last time I did this:
devOverrides {
content.api.host="https://content.code.dev-guardianapis.com"
content.api.key="REDACTED"
}