Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to Included Files should restart/rebuild function #4454

Closed
sean-roberts opened this issue Mar 14, 2022 · 0 comments · Fixed by #4619
Closed

Changes to Included Files should restart/rebuild function #4454

sean-roberts opened this issue Mar 14, 2022 · 0 comments · Fixed by #4619
Assignees
Labels

Comments

@sean-roberts
Copy link
Contributor

Describe the bug

When developing a function that uses the included_files feature, those files are bundled into the function for access. However, when developing the function, I would go back and forth between editing the included file and the function itself. Only when I updated the included function did it rebuild.

Steps to reproduce

Create a function that uses the functions.included_files toml config like below:

[functions]
  included_files = ["templates/*.*"]

When in netlify dev, updates to the matched files will not be presented unless the function is touched to trigger a rebuild/restart.

Configuration

[functions]
  included_files = ["templates/*.*"]

Environment

System:
    OS: macOS 12.2.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 60.16 MB / 32.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.13.1 - /opt/homebrew/opt/nvm/versions/node/v16.13.1/bin/node
    Yarn: 1.22.17 - /opt/homebrew/opt/nvm/versions/node/v16.13.1/bin/yarn
    npm: 8.1.2 - /opt/homebrew/opt/nvm/versions/node/v16.13.1/bin/npm
  npmGlobalPackages:
    netlify-cli: 9.13.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants