import { d as defineEventHandler, g as getRequestHeader, a as getCachedConfig, b as sendRedirect } from '../nitro/nitro.mjs'; import 'node:http'; import 'node:https'; import 'node:events'; import 'node:buffer'; import 'node:fs'; import 'node:path'; import 'node:crypto'; import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/vue/index.mjs'; import 'node:url'; import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/consola/dist/index.mjs'; import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/fast-xml-parser/src/fxp.js'; import 'file:///mnt/new-volume-7/vue_projects/montify/montify/node_modules/ipx/dist/index.mjs'; const handler = defineEventHandler(async (event) => { const host = getRequestHeader(event, "host"); const config = await getCachedConfig(host || ""); if (config == null ? void 0 : config.storageLogo) { const remoteUrl = `${config.storageLogo}/favicon.ico`; return sendRedirect(event, remoteUrl, 302); } return sendRedirect(event, "https://node.newinsta.ir/", 302); }); export { handler as default };