While trying to implement layerfig on my blog, I've realized that the way layerfig loads the file does not work for serverless.
That's because it expects the config/ files are there but even if we includeFiles all configs, it cannot resolve to that folder specifically.
Ideas
- check how it resolves file
- check for root path
- allow users to specify the entire root folder OR when
configFolderPath is defined, only append the file name to this path
- create a dummy serverless project and host on vercel
- add some random files
- include those
- console.log the folder structure
Resources
While trying to implement layerfig on my blog, I've realized that the way layerfig loads the file does not work for serverless.
That's because it expects the
config/files are there but even if weincludeFilesall configs, it cannot resolve to that folder specifically.Ideas
configFolderPathis defined, only append the file name to this pathResources