Skip to content

Hot Reload for Routes #6

@CodeMaverick-143

Description

@CodeMaverick-143

Restarting the server manually after every route change slows down development.

Technical Implementation:

  • Integrate a file watcher (like chokidar) in the development server.
  • When a route file changes, clear the require/import cache for that file.
  • Re-register the routes in the running App instance without killing the process.

Acceptance Criteria:

  • Modifying a route handler file automatically updates the behavior on the next request without a manual restart.
  • Console logs indicate that a reload has occurred.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions