š SveleteKit AWS adapter with multiple architecture
If you are building a SPA, consider AWS Amplify + adapter-static.
If you want to use always-on servers (not serverless), consider EC2 (ECR) + adapter-node.
Install AWS CLI in local machine
Install adapter in your SvelteKit project
npm i -D @jill64/sveltekit-aws-adapter
// svelte.config.js
import adapter from '@jill64/sveltekit-aws-adapter'
const config = {
// ...
kit: {
adapter: adapter({
name: 'Your Application Name',
deploy: true,
architecture: 'lambda-s3'
// ...
// Other Adapter Options
// ...
})
}
}
export default config
This adapter allows you to choose from multiple architectures depending on your use case.
Name | Response Streaming | Assets Scaling | Low Round Trip | Unlimited SSG | Demo Site |
---|---|---|---|---|---|
lambda-mono | ā | ā | Link | ||
lambda-s3(Default) | ā | ā | ā | Link | |
edge-bundled | ā | ā | ā | Link | |
edge-unbundled | ā | ā | ā | Link |
deploy: true
optionIf the automatic deployment option is false, you can deploy the app at any time by running the following command after the app build is complete.
cd ./build && npx cdk deploy
cd ./build && npx cdk destroy --all
MIT