export default defineEventHandler((event) => {
  const url = getRequestURL(event);
  const path = url.pathname;

  // Redirect /blog to /blogs
  if (path === '/blog' || path === '/en/blog') {
    const newPath = path === '/blog' ? '/blogs' : '/en/blogs';
    return sendRedirect(event, newPath, 301);
  }

  // Redirect old offer URLs that no longer exist to the offers index
  // This catches /offers/<old-slug> or /en/offers/<old-slug> that would 404
  // Individual offer pages still work via the [slug].vue dynamic route
});
