@svelterun/adapter-auto
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-next.2 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @svelterun/adapter-auto

Weekly Downloads

1

Version

1.0.0-next.2

License

MIT

Unpacked Size

6.35 kB

Total Files

6

Last publish

Collaborators

  • nberlette