Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1.53 KB

README.md

File metadata and controls

40 lines (26 loc) · 1.53 KB

@svelterun/adapter-auto

Automatically chooses the adapter for your current environment, if possible.

Usage

npm install -D @svelterun/adapter-auto

Then add to your svelte.config.js:

import adapt from "@svelterun/adapter-auto";

{
  "kit": {
    "adapter": adapt()
  }
}

Supported environments

The following environments are supported out-of-the-box, meaning a newly created project can be deployed on one of these platforms without any additional configuration:

Community adapters

Support for additional environments can be added in adapters.js. To avoid this package ballooning in size, community-supported adapters should not be added as dependencies — adapter-auto will instead prompt users to install missing packages as needed.

License

MIT © Nicholas Berlette