import o from"node:process";globalThis._importMeta_={url:import.meta.url,env:o.env};import{Server as t}from"node:http";import{Server as e}from"node:https";import{t as r,d as n,u as s,a as p,s as i,b as a}from"./chunks/_/nitro.mjs";import"nitropack/dist/runtime/plugin";import"packrup";import"vue";import"node:fs";import"node:url";import"consola/core";import"node:path";const m=o.env.NITRO_SSL_CERT,c=o.env.NITRO_SSL_KEY,d=a(),l=m&&c?new e({key:c,cert:m},r(d.h3App)):new t(r(d.h3App)),v=n(o.env.NITRO_PORT||o.env.PORT)||3e3,u=o.env.NITRO_HOST||o.env.HOST,T=o.env.NITRO_UNIX_SOCKET,h=l.listen(T?{path:T}:{port:v,host:u},(t=>{t&&(console.error(t),o.exit(1));const e=m&&c?"https":"http",r=h.address();if("string"==typeof r)return void console.log(`Listening on unix socket ${r}`);const n=(s().app.baseURL||"").replace(/\/$/,""),p=`${e}://${"IPv6"===r.family?`[${r.address}]`:r.address}:${r.port}${n}`;console.log(`Listening on ${p}`)}));p(),i(h,d);const _={};export{_ as default};
