@wix/cloud-provider-fetch-adapter
v1.0.4
Published
Wix Cloud Provider Fetch Adapter
Readme
Wix Cloud Provider Fetch Adapter
A platform-agnostic Astro adapter that bundles applications as completely self-contained modules with a standard fetch interface.
Features
- ✅ Platform Agnostic: Works in any JavaScript runtime environment
- ✅ Self-Contained: Bundles all dependencies into a single module
- ✅ Standard Interface: Exposes
fetch(request, env)handler - ✅ Zero Dependencies: Final bundle requires no external dependencies at runtime
- ✅ Environment Variables: Pass environment variables via the
envparameter
Installation
npm install @wix/cloud-provider-fetch-adapterUsage
// astro.config.mjs
import { defineConfig } from 'astro/config';
import wixCloudProviderFetchAdapter from '@wix/cloud-provider-fetch-adapter';
export default defineConfig({
output: 'server',
adapter: wixCloudProviderFetchAdapter()
});Portability & Privacy
- The adapter removes build-machine specific paths from the SSR manifest for portable, leak-free bundles.
- Route metadata and built module specifiers remain intact to preserve runtime behavior.
License
MIT
