Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/macfja/svelte-adapter-multi
A Svelte adapter that launch other adapters
https://github.com/macfja/svelte-adapter-multi
svelte svelte-adapter svelte-kit sveltejs sveltekit sveltekit-adapter
Last synced: 10 days ago
JSON representation
A Svelte adapter that launch other adapters
- Host: GitHub
- URL: https://github.com/macfja/svelte-adapter-multi
- Owner: MacFJA
- License: mit
- Created: 2021-08-23T13:28:32.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-29T15:16:48.000Z (almost 3 years ago)
- Last Synced: 2024-10-11T12:45:49.816Z (26 days ago)
- Topics: svelte, svelte-adapter, svelte-kit, sveltejs, sveltekit, sveltekit-adapter
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 17
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Svelte Multi Adapter
An adapter to launch multiple adapter
## Installation
```bash
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`:
```javascript
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](CONTRIBUTING.md)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.