diff --git a/content/en/user-guide/lambda-tools/hot-reloading/index.md b/content/en/user-guide/lambda-tools/hot-reloading/index.md index 09754e347b..f746517cf3 100644 --- a/content/en/user-guide/lambda-tools/hot-reloading/index.md +++ b/content/en/user-guide/lambda-tools/hot-reloading/index.md @@ -40,6 +40,21 @@ Therefore, filesystem changes persist between code changes for invocations dispa If using Docker Desktop on macOS, you might need to allow [file sharing](https://docs.docker.com/desktop/settings/mac/#file-sharing) for your target folders. MacOS may prompt you to grant Docker access to your target folders. +**WSL2-compatible paths required with Rancher Desktop on Windows:** +Make sure your Lambda handler paths are specified using WSL2-compatible paths. For example, instead of using a Windows-style path such as: + +```bash +C:\Users\myuser\projects\lambda\handler.py +``` + +Use the corresponding WSL-style path: + +```bash +/mnt/c/Users/myuser/projects/lambda/handler.py +``` + +This ensures that LocalStack can properly mount and watch your Lambda code inside the container when running under WSL2. + **Layer limit with hot reloading for layers:** When hot reloading is active for a Lambda layer (Pro), the function can use at most one layer.