• Stars
    star
    135
  • Rank 268,510 (Top 6 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created about 3 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A SvelteKit adapter for AWS using the AWS-CDK

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

More Repositories

1

graphql-pouch

GraphQL runtime using PouchDB
JavaScript
204
star
2

serverless-aws-cdk-ecommerce

E-Commerce Serverless AWS-CDK Example
JavaScript
42
star
3

introduction-graphql

Introduction to GraphQL
JavaScript
28
star
4

graphql-subscriptions-sse-presence-list

GraphQL subscriptions over HTTP Server-Side-Events
JavaScript
16
star
5

introduction-nodejs

Introduction to NodeJS
JavaScript
15
star
6

reactish-elmish

Proof of Concept - RxJS + React -> Elmish
JavaScript
13
star
7

excel-couchdb-import

Import Excel Sheets to CouchDB/PouchDB
JavaScript
13
star
8

serverless-workshop-sveltekit

Serverless Workshop SvelteKit Example
TypeScript
11
star
9

introduction-react

Introduction to React
9
star
10

ReactiveMVVM

C#
9
star
11

lambda-pouch

Lambda Functions runtime on top of PouchDB
JavaScript
8
star
12

sveltekit-adapter-aws-basic-example

A basic SvelteKit example webapp using sveltekit-adapter-aws.
Svelte
7
star
13

racyjs

A blazing fast zero-configuration async server-side React with GraphQL toolbelt
JavaScript
7
star
14

introduction-kubernetes

Introduction to Kubernetes
6
star
15

introduction-aws

Hands-On introduction to Serverless using AWS-Cloud-Services via JavaScript/TypeScript
5
star
16

sveltekit-adapter-aws-advanced-example

Svelte
5
star
17

gatsby-source-modular-graphql

Gatsby source plugin which adds modularized third-party GraphQL schemas
JavaScript
4
star
18

introduction-python

An introduction to Python, Flask, Numpy, MatPlotLib and Pandas
Jupyter Notebook
4
star
19

aws-cdk-js-github-action

GitHub Action using AWS CDK for JavaScript
Dockerfile
4
star
20

tryelixir

Elixir
2
star
21

graphql-pouch-as-library

Using Express and GraphQL-Pouch as a Library
JavaScript
2
star
22

introduction-svelte

A introduction into Svelte and SvelteKit
2
star
23

aws-cdk-js-github-action-example

Simple Example using GitHub Action MikeBild/aws-cdk-js-github-action
JavaScript
2
star
24

ab-test-example

Simplified AB-Tests with MicroServices
JavaScript
2
star
25

introduction-rxjs

Introduction to Reactive Extentions for JavaScript
1
star
26

ssmenv-cli

AWS SSM Parameter-Store to Environment Variables
JavaScript
1
star
27

DotNetCodingDojoBerlin

AltNetBerlin Coding Dojo 31.03.2010
C#
1
star
28

es6-memory

ES6 Memory-Game
JavaScript
1
star
29

react-tic-tac-toe

Tic Tac Toe in React with Minimax-AI
JavaScript
1
star
30

gatsby-plugin-aws-parameter-store-environment

AWS Paramter-Store values to local Environment variables at build time
JavaScript
1
star
31

sveltekit-adapter-aws-blog-example

SvelteKit Adapter AWS Blog Example
TypeScript
1
star
32

Katas

C#
1
star
33

MathParser

MathParser Demo Project
C#
1
star
34

statemutatejs

simple projection functions, alias foldl, that mutate state on a stream of elements
JavaScript
1
star