Closed Nierusan closed 4 years ago
Hi,
I tried a lot before writing here to insert my Algolia API to the template but I always got the same issue...
I search on Gatsby and Algolia docs, but I've got no luck yet.
This is what I wrote in my .env file with my APIs
Several .env, .env.production, and I tried more, but always the same result.
I even tried to put in the config.js file, but I know this is not the way to do it.
Thanks in advance
@Nierusan - The environment variables have to be prefixed with GATSBY_. For example, ALGOLIA_APP_ID becomes GATSBY_ALGOLIA_APP_ID.
GATSBY_
ALGOLIA_APP_ID
GATSBY_ALGOLIA_APP_ID
Hi,
I tried a lot before writing here to insert my Algolia API to the template but I always got the same issue...
I search on Gatsby and Algolia docs, but I've got no luck yet.
This is what I wrote in my .env file with my APIs
Several .env, .env.production, and I tried more, but always the same result.
I even tried to put in the config.js file, but I know this is not the way to do it.
Thanks in advance