MCPcopy Index your code
hub / github.com/MikeBild/sveltekit-adapter-aws

github.com/MikeBild/sveltekit-adapter-aws @v4.5.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v4.5.1 ↗ · + Follow
10 symbols 26 edges 7 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

SvelteKit Adapter AWS

This project contains a SvelteKit adapter to deploy SvelteKit to AWS using AWS-CDK.

How to use?

  1. Create a SvelteKit project "my-app" - npm create svelte@latest my-app
  2. cd my-app
  3. npm install
  4. npm install -D sveltekit-adapter-aws
  5. edit svelte.config.js

Basic setup example

svelte.config.js

import { adapter } from 'sveltekit-adapter-aws';
import preprocess from 'svelte-preprocess';

export default {
  preprocess: preprocess(),
  kit: {
    adapter: adapter({
      autoDeploy: true,
    }),
  },
};

Architecture

Architecture

Configuration

export interface AWSAdapterProps {
  cdkProjectPath?: string; // AWS-CDK App file path for AWS-CDK custom deployment applications (e.g. ${process.cwd()}/deploy.js)
  artifactPath?: string; // Build output directory (default: build)
  autoDeploy?: boolean; // Should automatically deploy in SvelteKit build step (default: false)
  stackName?: string; // AWS-CDK CloudFormation Stackname (default: AWSAdapterStack-Default)
  esbuildOptions?: any; // Override or extend default esbuild options. Supports `external` (default `['node:*']`), `format` (default `cjs`), `target` (default `node16`), `banner` (default `{}`).
  FQDN?: string; // Full qualified domain name of CloudFront deployment (e.g. demo.example.com)
  MEMORY_SIZE?: number; // Memory size of SSR lambda in MB (default 128 MB)
  LOG_RETENTION_DAYS?: number; // Log retention in days of SSR lambda (default 7 days)
  zoneName?: string; // The name of the hosted zone in Route 53 (defaults to the TLD from the FQDN)
}

Example usages

Extension points exported contracts — how you extend this code

AWSAdapterProps (Interface)
(no doc)
adapter.ts
AWSAdapterStackProps (Interface)
(no doc)
lib/adapter-stack.ts

Core symbols most depended-on inside this repo

parseQuery
called by 1
lambda/serverless.js
adapter
called by 0
adapter.ts
adapt
called by 0
adapter.ts
constructor
called by 0
lib/adapter-stack.ts
handler
called by 0
lambda/serverless.js
getClientAddress
called by 0
lambda/serverless.js

Shape

Function 5
Class 2
Interface 2
Method 1

Languages

TypeScript100%

Modules by API surface

lib/adapter-stack.ts4 symbols
lambda/serverless.js3 symbols
adapter.ts3 symbols

For agents

$ claude mcp add sveltekit-adapter-aws \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page