Skip to content

Support runtime hooks for graceful shutdown/restart  #1224

Closed

Description

@pi0

Sometimes runtime plugins and composables, allocate (global) resources that need to be gracefully closed when restarting dev server or closing production server.

For this, we shall support a new runtime hook close, and add a hook once for node-server, dev and prerender presets.

There is a nice example here nuxt/nuxt#19888 (comment)

Activity

  1. added
    enhancement
    on May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpreset:node

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions