Skip to content

Resolving Error('AdonisJS expects ".adonisrc.json" file to exist in the application root'); when using serverless #3

Answered by tomhatzer
tomhatzer asked this question in Q&A
Discussion options

You must be logged in to vote

The problem is that serverless doesn't copy the .adonisrc.json file to the build directory.

If you can copy it yourself or do it in a serverless hook while doing the build, you can circumvent this error message.

Replies: 1 comment

Comment options

tomhatzer
Jul 8, 2021
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by tomhatzer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant