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
When serverless-webpack plugin is used getEnvDirectory() function called from different hooks returns different values:
afterDeploy hook -> createCFFile() function. getEnvDirectory() returns this value: /path/to/project/.serverless-resources-env/.us-east-1_dev_functionName
This path is used to create envs file.
beforeLocalInvoke hook. getEnvDirectory() returns this value: /path/to/project/.webpack/service/.serverless-resources-env/.us-east-1_dev_functionName
This path is used to read envs file but it doesn't exist because envs were written to the different directory on the previous step.
The text was updated successfully, but these errors were encountered:
When
serverless-webpack
plugin is usedgetEnvDirectory()
function called from different hooks returns different values:afterDeploy
hook ->createCFFile()
function.getEnvDirectory()
returns this value:/path/to/project/.serverless-resources-env/.us-east-1_dev_functionName
This path is used to create envs file.
beforeLocalInvoke
hook.getEnvDirectory()
returns this value:/path/to/project/.webpack/service/.serverless-resources-env/.us-east-1_dev_functionName
This path is used to read envs file but it doesn't exist because envs were written to the different directory on the previous step.
The text was updated successfully, but these errors were encountered: