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

[[email protected]] watching on static's updates not work #2697

Open
mindon opened this issue Oct 10, 2024 · 0 comments
Open

[[email protected]] watching on static's updates not work #2697

mindon opened this issue Oct 10, 2024 · 0 comments

Comments

@mindon
Copy link

mindon commented Oct 10, 2024

watching on static is not working any more,
even after deno task build, those new static files already appear in _fresh/snapshot.json

deno 2.0.0
jsr:@fresh/core@^2.0.0-alpha.22

here's the steps:

  1. echo world > static/hello.txt
  2. fresh detected file changed, and restarted
  3. cat _fresh/snapshots.json | grep hello.txt not found
  4. deno task build fresh not restarting, visit hello.txt 404
  5. cat _fresh/snapshots.json | grep hello.txt found
  6. touch static/hello.txt fresh detected file changed, and restarted
  7. visit hello.txt, ok

here's the problem:

first, file change detected, but snapshots.json not updated
then, after task build, sanpshots.json updated, fresh not restart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant