Z
Z
zhiga2019-07-18 08:50:43
Node.js
zhiga, 2019-07-18 08:50:43

gridsome. How to configure environment variables?

this is described in the documentation https://gridsome.org/docs/environment-variables/#u... but the @gridsome/source-plugin plugin that allows you to do this does not exist ((
PS need the GRIDSOME tag or static generators

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
hzzzzl, 2019-07-18
@hzzzzl

maybe it’s easier right away through dotenv, especially since they themselves write
https://www.npmjs.com/package/dotenv
is simple there, you make a .env file and connect it with the first line on the server, and that's it

I
IDONTSUDO, 2019-08-01
@IDONTSUDO

and yes to the answer above do so.
npm i dotenv -g

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question