@hedystia/astro-bun
Version:
<div align="center"> <p> <strong>🚀 @hedystia/astro-bun</strong> </p>
2 lines (1 loc) • 883 B
JavaScript
import{AstroError as i}from"astro/errors";var e="@hedystia/astro-bun";function o(s){return{args:s,exports:["handle","running","start","stop"],name:e,serverEntrypoint:`${e}/server.js`,adapterFeatures:{edgeMiddleware:!1},supportedAstroFeatures:{i18nDomains:"experimental",envGetSecret:"stable",serverOutput:"stable",staticOutput:"stable",hybridOutput:"stable",sharpImageService:"stable"}}}function p(s){return{name:e,hooks:{"astro:config:setup":({updateConfig:t})=>{t({vite:{ssr:{noExternal:["@hedystia/astro-bun"]}}})},"astro:config:done":({config:t,setAdapter:r})=>{if(r(o({assets:t.build.assets,client:t.build.client?.toString(),host:t.server.host,port:t.server.port,server:t.build.server?.toString(),...s})),t.output!=="static"&&t.output!=="server")throw new i('Only `output: "server"` or `output: "static"` is supported by this adapter.')}}}}export{p as default,o as getAdapter};