Yusuke Wada
Yusuke Wada
Hi @AyushCoder9 Can you handle the comment https://github.com/honojs/hono/pull/4539#discussion_r2573092807? If you don't react to it, we can't merge this.
@AyushCoder9 Thank you!! We are planning to include this change in the next minor version. So, I'll merge this later!
@3w36zj6 Interesting! I'd like to have the option to decide whether to create a redirect HTML or not.
> However, I don't think this behavior is desirable for most users. It would be more helpful if either no file is output, or if there is some kind of...
@3w36zj6 > we could consider including the logic in the core. If we decide to include the logic in the core, where is it implemented? `defaultPlugin`?
One of the ways to implement it is like this: ```ts const getDefaultPlugin = ({ redirect = false }: { redirect: boolean }): SSGPlugin => { return { afterResponseHook: (res)...
> Is this size acceptable? Yes. But I reconsidered. Redirecting with HTML is something the user should decide. So it's better not to include it in the default plugin. >...
@3w36zj6 Thank you for the explanation. > This mechanism simply can be expressed with `app.get("/old", c => c.redirect("/new"))`, but it makes configuring redirects much easier. I think using `app.get("/old", c...
@3w36zj6 Thanks. So, what will you do for the redirects feature? I think implementing it in a plugin is a good idea.
Hi @3w36zj6 The approach looks good! Can you proceed?