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

0.11.0 • Public • Published

@sveltekit-cdk/adapter

npm version

WARNING: Not for production, yet!!

No compatibility between versions is garanteed while in initial development. It's recommended to use exact version in package.json to avoid suprices.

Intro

Prepare the artifacts for your SvelteKit site using this adapter.

Then use SvelteDistribution construct from @sveltekit-cdk/constructsv2 to include the site to your CDK stack.

Instructions

  1. In sveltekit project:
    > npm i -s @sveltekit-cdk/adapter
  2. In svelte.config.js
    import preprocess from 'svelte-preprocess';
    import { adapter } from '@sveltekit-cdk/adapter'
    
    const config = {
        preprocess: preprocess(),
    
        kit: {
            // hydrate the <div id="svelte"> element in src/app.html
            target: '#svelte',
            adapter: adapter({
                cdkProjectPath: '../the-cdk-project'
            })
        }
    };
    
    export default config;

Links

Readme

Keywords

Package Sidebar

Install

npm i @sveltekit-cdk/adapter

Weekly Downloads

1

Version

0.11.0

License

MIT

Unpacked Size

43.9 kB

Total Files

27

Last publish

Collaborators

  • juranki