question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using dotenv with Claudia

See original GitHub issue

Hi, 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:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
gojkocommented, Dec 19, 2016

@jmike since 2.2.0 claudia just uses npm pack to produce the package, so check the NPM package.json docs if you need to exclude/include folders. you can test if it gets created correctly by just running npm pack directly

the only exception is node_modules, which gets re-installed, but you can force claudia to use your local copy by using --use-local-dependencies

1reaction
gojkocommented, May 11, 2016

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found