Find help for common issues
BACKEND_URL
env variable is not setFull Error Message:
The BACKEND_URL env variable is not set. Open the `.env` file and set the value. You can find the value in your Thin project settings.
Problem:
The Thin client needs to know to which Thin project he should connect to. In most project templates this is specified by setting an environment variable BACKEND_URL
. This BACKEND_URL
value is then passed to initThinBackend(..)
.
Solution:
.env
in the project directory. Create an empty if the .env
file doesn't exist yet.Copy the env var for your Thin project into the .env
file:
Project | Env Var |
---|
npm run dev
again. If you already have a npm run dev
running, make sure to restart the command so that the env vars are reloaded.If you need any help or input, feel free to ask in the Thin Community Forum.