Using dotenv with Claudia
See original GitHub issueHi, previously I was able to use dotenv with Claudia by adding my .env
file to the files
property of the package.json. However, now it is ignored. I imagine this is because the file is in .gitignore. Can you please clarify if this is a desired behaviour?
I would think files
property should dominate over .gitignore
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Manage Lambda Environment Variables - Claudia.js
Manage Lambda Environment Variables · For a list of key-value pairs from the command line, use --set-env . · To version-control configuration, and ......
Read more >claudiajs/claudia - Gitter
I'm using Babel in my project. If I import the source-map-support module, when I execute 'claudia create' I get an error: 'Error: Cannot...
Read more >problems with .env and loader.php files - Stack Overflow
I am redesigning a website for a client. They provided me with the server login where I was able to download all the...
Read more >Using dotenv package to create environment variables - Medium
env object that is made available to the application. Using dotenv. It's pretty simple to use. First, install the package. npm install dotenv...
Read more >claudia | Yarn - Package Manager
Claudia makes it easy to deploy Node.js projects to AWS Lambda and API Gateway. ... Support for architecture option in create and update...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@jmike since 2.2.0 claudia just uses
npm pack
to produce the package, so check the NPMpackage.json
docs if you need to exclude/include folders. you can test if it gets created correctly by just runningnpm pack
directlythe only exception is
node_modules
, which gets re-installed, but you can force claudia to use your local copy by using--use-local-dependencies
this is fixed in 1.2.7, now on NPM. if the files property is specified in package.json, Claudia now just ignores .gitignore/.npmignore. Please let me know if this solved your problem