@coxmos/adapter-edge
v0.0.2
Published
SvelteKit adapter for coxmos-edge (Deno isolate runtime). UNVERIFIED beyond Builder API surface - see index.js header before using in production.
Downloads
32
Readme
@coxmos/adapter-edge
SvelteKit adapter targeting coxmos-edge's Deno-isolate runtime.
Not yet confirmed — flagged directly in files/entry.js:
- The exact glue between
builder.generateManifest()'s output and SvelteKit's internalServerclass (import path,Server#init()signature,Server#respond()'s second-argument shape). This was reconstructed from public patterns, not fetched line-for-line from adapter-node's actual internal wiring.
Usage
npm install @coxmos/adapter-edge// svelte.config.js
import adapter from '@coxmos/adapter-edge';
export default {
kit: {
adapter: adapter({
out: '.coxmos/edge' // optional, this is the default
})
}
};npm run buildOutput
.coxmos/edge/
├── client/ # static assets (from builder.writeClient)
├── server/
│ └── manifest.js # from builder.generateManifest()
├── entry.js # Deno fetch-handler entrypoint (see caveats above)
└── coxmos-manifest.json # RouteManifest, same shape as coxmos-build-cli's other framework outputsVerification checklist
Run through this before trusting the build output:
npm run buildcompletes without errors..coxmos/edge/entry.jsexists and.coxmos/edge/server/manifest.jsexists.- Inspect
manifest.js— confirm it exports something namedmanifest(or update the import inentry.jsto match whatever it actually exports). - Try running
entry.jsunder Deno directly and hit it with a real request — ifServer#initorServer#respondthrow, that confirms the unverified glue needs adjusting; the error message will tell you the real expected signature. - Only after a real request gets a real response should this be considered working.
