export API_MOCKS=trueto your
content-searchdomains of the API these in turn depend on Elasticsearch. Hence we have to have Elasticsearch running on our machine for these domains to function as expected. The recommended approach to running Elasticsearch on your machine depends on what you want to work on:
content-searchdomains such as add models or alter Elasticsearch queries it's recommended you run Elasticsearch locally you can find further instructions on how to achieve this under search-indexer dev-services section.
./scripts/run-es-proxy.shfrom island.is root
Forwarding from 0.0.0.0:9200 -> 9200in terminal
content-searchdomains for the website to work as expected.
CONTENTFUL_HOST=- Get from Contentful (depends on whether you use prod or preview tokens)
CONTENTFUL_ACCESS_TOKEN=- Get from Contentful or by running
yarn get-secrets api
CONTENTFUL_MANAGEMENT_ACCESS_TOKEN=- Get from Contentful (only used when generating models from Contentful in API)