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

fix: watch pages dir for typegen updates #1023

Conversation

tylersayshi
Copy link
Contributor

Tested this locally and the hot reload still works when changing the components or the pages dir

the key about this is that pages.gen.ts is outside pagesDir so we avoid the issue we were seeing before.

but the upside of still watching this is that when we add/remove pages or update their getConfig, pages.gen.ts will hot update to reflect the changes

Copy link

vercel bot commented Nov 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
waku ✅ Ready (Inspect) Visit Preview Nov 30, 2024 2:25am

Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@tylersayshi
Copy link
Contributor Author

How was there just one failure on node 22 + windows 😞🤯

We can close this for now and revisit later. It's more important that HMR is reliable.

/close

@dai-shi
Copy link
Owner

dai-shi commented Dec 1, 2024

How was there just one failure on node 22 + windows

It's a flaky test. It passes on the second time.

@tylersayshi tylersayshi mentioned this pull request Dec 1, 2024
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

Successfully merging this pull request may close these issues.

2 participants