@macfja/svelte-multi-adapter

1.0.2 • Public • Published

Svelte Multi Adapter

An adapter to launch multiple adapter

Installation

npm install --save-dev @macfja/svelte-multi-adapter
# or
pnpm add --save-dev @macfja/svelte-multi-adapter
# or
yarn add --dev @macfja/svelte-multi-adapter

Usage

Inside svelte.config.js:

import staticAdapter from '@sveltejs/adapter-static'
import nodeAdapter from '@sveltejs/adapter-node'
import multiAdapter from '@macfja/svelte-multi-adapter'

const config = {
    kit: {
        adapter: multiAdapter([staticAdapter(/* ... */), nodeAdapter(/* ... */)]),
        target: '#svelte',
    }
};

export default config;

Contributing

Contributions are welcome. Please open up an issue or create PR if you would like to help out.

Read more in the Contributing file

License

The MIT License (MIT). Please see License File for more information.

Package Sidebar

Install

npm i @macfja/svelte-multi-adapter

Weekly Downloads

119

Version

1.0.2

License

MIT

Unpacked Size

3.12 kB

Total Files

4

Last publish

Collaborators

  • macfja