Skip to content

svelterun/adapter-auto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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