You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Node.js project where I'm using typewriter and I'd like to set the API key from a .env file (or any other local file that I can keep out of version control).
Segment recommends you use a Token Script to share an API token with your team. When you use a token script, you can supply your API token as an environment variable (echo $TYPEWRITER_TOKEN), from a .env. file (source .env; echo $TYPEWRITER_TOKEN) or using any other CLI tool for providing secrets.
I have a .env file with TYPEWRITER_TOKEN set at the root of the project at the same location as typewriter.yml. However, when running npx typewriter I get:
No valid API token, using local copy instead.
It's unclear to me from the documentation where npx typewriter looks for the .env file. I've also tried setting TYPEWRITER_TOKEN in ~/.typewriter but that didn't work either.
The text was updated successfully, but these errors were encountered:
Hi! 👋
I have a Node.js project where I'm using typewriter and I'd like to set the API key from a
.env
file (or any other local file that I can keep out of version control).According to the docs on API token configuration:
I've added the following to
typewriter.yml
:I have a
.env
file withTYPEWRITER_TOKEN
set at the root of the project at the same location astypewriter.yml
. However, when runningnpx typewriter
I get:No valid API token, using local copy instead.
It's unclear to me from the documentation where
npx typewriter
looks for the.env
file. I've also tried settingTYPEWRITER_TOKEN
in~/.typewriter
but that didn't work either.The text was updated successfully, but these errors were encountered: