thepassle / app-tools

129 stars 8 forks source link

Redirect allows for context #20

Closed JudahGabriel closed 1 year ago

JudahGabriel commented 1 year ago

Redirect plugin accepts a string or function, allowing the redirect to use path params.

Usage:

redirect((context) => `/foo/${context.params.name}`);
thepassle commented 1 year ago

Lgtm, would you mind updating the documentation with an example as well?

JudahGabriel commented 1 year ago

Certainly. One moment.

thepassle commented 1 year ago

published under 0.9.8, thanks for the PR :)