@sveltekit-cdk/adapter
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
- In sveltekit project:
> npm i -s @sveltekit-cdk/adapter
- 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;