text: /*!
   * name: @jswork/next-redirect-to
   * description: Redirect to path.
   * homepage: https://github.com/afeiship/next-redirect-to
   * version: 1.0.0
   * date: 2020-11-22 15:13:55
   * license: MIT
   */
  !function(){var t=(this||window||Function("return this")()).nx||require("@jswork/next"),i={from:"/",to:"/home",replace:!0,history:null};t.redirectTo=function(e){var r=t.mix(null,i,e),o=t.get(window,"location.pathname"),e=r.replace?"replace":"push";r.history||t.error("History is required!"),o===r.from&&r.history[e](r.to)},"undefined"!=typeof module&&module.exports&&(module.exports=t.redirectTo)}();