[MISC] Add frontend development configuration with hot-reloading #1383
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What
Add frontend development configuration with hot-reloading support for improved developer experience.
Why
This change improves the frontend development workflow by:
How
Can this PR break any existing features. If yes, please list possible items. If no, please explain why.
No, these changes only affect the development environment and don't modify any production code or behavior. The production build process remains unchanged, as we're only adding a separate development target.
Database Migrations
None
Env Config
Added development environment variables in
frontend/sample.env
:NODE_ENV=development
CHOKIDAR_USEPOLLING=true
WATCHPACK_POLLING=true
WDS_SOCKET_PORT=3000
FAST_REFRESH=true
Relevant Docs
Related Issues or PRs
#1378
Dependencies Versions
No new dependencies added.
Notes on Testing
To test this change:
Screenshots
N/A
Checklist
I have read and understood the Contribution Guidelines.