astro
Version:
Astro is a modern site builder with web best practices, performance, and DX front-of-mind.
9 lines (8 loc) • 296 B
JavaScript
// A stub of a component instance for a given route
export const RedirectComponentInstance = { default() {
return new Response(null, { status: 301 });
} };
export const RedirectSinglePageBuiltModule = {
page: () => Promise.resolve(RedirectComponentInstance),
onRequest: (_, next) => next()
};