sst

SST v2

MIT License

Downloads
117.3K
Stars
21.5K
Committers
318

Bot releases are visible (Hide)

sst - v0.37.0

Published by fwang about 3 years ago

πŸš€ Enhancement

  • #640 EventBus: add high level construct for AWS EventBridge (@fwang)
    import { EventBus } from "@serverless-stack/resources";
    
    new EventBus(this, "MyBus", {
      rules: {
        myRule: {
          eventPattern: { source: ["aws.codebuild"] },
          targets: ["src/target1.main", "src/target2.main"],
        },
      },
    });
    

Update using:

$ npm install --save --save-exact @serverless-stack/[email protected] @serverless-stack/[email protected]
sst - v0.36.0

Published by fwang about 3 years ago

πŸš€ Enhancement

  • #620 Api: support $default catch-all route (@fwang)
    new Api(this, "Api", {
      routes: {
        "GET /notes"   : "src/list.main",
        "POST /notes"  : "src/create.main",
        "$default"     : "src/default.main",
      },
    });
    
  • #618 Api: add support for HTTP proxy routes (@fwang)
    new Api(this, "Api", {
      routes: {
        "GET /": {
          url: "http://domain.com",
        },
      },
    });
    
  • #621 ApolloApi: create 1 Lambda handler for both GET and POST routes (@fwang)
  • #616 sst start: print descriptive error message for handler not found (@fwang)

πŸ› Bug Fix

  • #619 Api: add trailing slash to custom domain url (@fwang)

Update using:

$ npm install --save --save-exact @serverless-stack/[email protected] @serverless-stack/[email protected]
sst - v0.35.2

Published by fwang about 3 years ago

πŸš€ Enhancement

  • #610 sst start: force include aws-sdk as esbuild externals (@fwang)
  • #609 StaticSite: allow extending the function for creating Route 53 records (@fwang)

πŸ› Bug Fix

  • #613 StaticSite: check path and buildOutput exist on build (@fwang)
  • #611 sst start: crash if functions has multiple dot in the handler (@fwang)
  • #612 ReactStaticSite: display environment variables in sst deploy output (@fwang)

πŸ“ Documentation

  • #607 Adding React.js + Cognito auth example (@jayair)
  • #599 Doc: add TypeScript examples for cross stack references (@fwang)

Update using:

$ npm install --save --save-exact @serverless-stack/[email protected] @serverless-stack/[email protected]
sst - v0.35.1

Published by fwang over 3 years ago

πŸš€ Enhancement

  • #595 sst start: send descriptive error response when disconnected (@fwang)
  • #590 Function: support sharing layers across stacks (@fwang)
  • #594 sst test: support .env environment variables for running tests (@fwang)
  • #586 Template: add python compiled files to .gitignore (@fwang)
  • #587 Template: add .env to starter template (@fwang)

πŸ› Bug Fix

  • #591 ApolloApi: fix CORS not working if authorization is enabled (@fwang)

Update using:

$ npm install --save --save-exact @serverless-stack/[email protected] @serverless-stack/[email protected]
sst - v0.35.0

Published by fwang over 3 years ago

πŸš€ Enhancement

  • #564 Core: Allow custom path for app entry in sst config (@geekmidas)
  • #575 Core: Support esbuild config in sst config (@erikm-icario)
  • #578 ReactStaticSite: display React environment variables after deploying (@fwang)
  • #571 Stack: improve error messaging for invalid stack props (@fwang)
  • #576 Api: support ALB routes (@fwang)

πŸ“ Documentation

  • #574 Doc: explain the design choice behind using esbuild (@fwang)
  • #573 Migration guide: add an example of hybrid multi-service Serverless Framework and SST app (@fwang)

Contributors

sst - v0.34.0

Published by fwang over 3 years ago

πŸš€ Enhancement

  • #566 Bucket: support Queue and Topic notifications (@fwang)
  • #563 StaticSite: support sites larger than 500MB (@fwang)

πŸ“ Documentation


Update using:

$ npm install --save --save-exact @serverless-stack/[email protected] @serverless-stack/[email protected]
sst - v0.33.1

Published by fwang over 3 years ago

πŸš€ Enhancement

πŸ“ Documentation

  • #554 Adding docs for ReactStaticSite and sst-env (@jayair)

Contributors


Update using:

$ npm install --save --save-exact @serverless-stack/[email protected] @serverless-stack/[email protected]
sst - v0.33.0

Published by fwang over 3 years ago

πŸš€ Enhancement

  • #525 ReactStaticSite: new React SPA construct with React environment variable integration (@fwang)
    new ReactStaticSite(this, "ReactSite", {
      path: "path/to/react-app",
      environment: {
        REACT_APP_API_URL: api.url,
        REACT_APP_USER_POOL_CLIENT: auth.cognitoUserPoolClient.userPoolClientId,
      },
    });
    
    More examples here - https://docs.serverless-stack.com/constructs/ReactStaticSite
  • #550 Function: add .jsx and .tsx extension support (@geekmidas)

Contributors


Update using:

$ npm install --save --save-exact @serverless-stack/[email protected] @serverless-stack/[email protected]
sst - v0.32.1

Published by fwang over 3 years ago

πŸ› Bug Fix

  • #533 create-serverless-stack: default runtime not set for tests in the non-Node.js templates (@fwang)
  • #536 sst start: importing file fails with ModuleNotFoundError for Python runtimes (@fwang)

πŸ“ Documentation

  • #524 docs(deploying-your-app) Fix small typo (@InfraK)

Contributors:


Update using:

$ npm install --save --save-exact @serverless-stack/[email protected] @serverless-stack/[email protected]
sst - v0.32.0

Published by fwang over 3 years ago

πŸš€ Enhancement

πŸ“ Documentation


Update using:

$ npm install --save --save-exact @serverless-stack/[email protected] @serverless-stack/[email protected]
sst - v0.31.0

Published by fwang over 3 years ago

πŸš€ Enhancement

  • #516 Api: check for duplicated routes at build time (@fwang)
  • #515 Function: support custom install commands for Python runtime (@fwang)
  • #511 Cron: allow configuring event payload (@fwang)

πŸ› Bug Fix

  • #510 AppSyncApi: do not normalize resolver key cases (@fwang)

πŸ“ Documentation

  • #497 Dynamically generating social cards for docs (@jayair)

Update using:

$ npm install --save --save-exact @serverless-stack/[email protected] @serverless-stack/[email protected]
sst - v0.30.0

Published by fwang over 3 years ago

πŸš€ Enhancement

  • #498 Function: add bundling command hooks (@fwang)

Update using:

$ npm install --save --save-exact @serverless-stack/[email protected] @serverless-stack/[email protected]
sst - v0.29.5

Published by fwang over 3 years ago

πŸ› Bug Fix

  • #495 StaticSite: fixing spelling mistake in static site stub (@jayair)

Update using:

$ npm install --save --save-exact @serverless-stack/[email protected] @serverless-stack/[email protected]
sst - v0.29.4

Published by fwang over 3 years ago

πŸ› Bug Fix

  • #494 Fix missing module lambda-layer-awscli (@fwang)

Update using:

$ npm install --save --save-exact @serverless-stack/[email protected] @serverless-stack/[email protected]
sst - v0.29.3

Published by fwang over 3 years ago

Highlights

A couple of optimizations made to the StaticSite:

  • when you sst deploy and the site hasn’t changed, SST will skip uploading the files to S3 and invalidating CloudFront cache. This will save you a couple of minutes per deploy when you are just working on your backend.
  • when you sst start, SST will deploy a placeholder site, and will not re-deploy on changes. This is to ensure sst start always start up quickly. And it’s assumed that you have your website running locally when you are working on it.

πŸš€ Enhancement

  • #493 StaticSite: generate deploy id based on content hash (@fwang)
  • #491 StaticSite: skip building on sst start (@fwang)
  • #481 App: add account property (@fwang)

πŸ› Bug Fix

  • #480 StaticSite: skip building on sst remove (@fwang)

πŸ“ Documentation

  • #479 Updating docs with new error page option (@jayair)

Update using:

$ npm install --save --save-exact @serverless-stack/[email protected] @serverless-stack/[email protected]
sst - v0.29.2

Published by fwang over 3 years ago

πŸš€ Enhancement

  • #478 StaticSite: add error page option to auto-redirect to the index page (@fwang)

We made a minor change to how StaticSite handle 404 pages for SPAs (ie. React, Vue, Angular). If you are using StaticSite to deploy SPAs, make sure to configure errorPage like this:

 import { StaticSite, StaticSiteErrorOptions } from "@serverless-stack/resources";
 new StaticSite(this, "ReactSite", {
   path: "path/to/src",
+  errorPage: StaticSiteErrorOptions.REDIRECT_TO_INDEX_PAGE,
   buildCommand: "npm run build",
   buildOutput: "build",
 });

πŸ› Bug Fix

  • #477 StaticSite: fix custom resource permission denied error (@fwang)

Update using:

$ npm install --save --save-exact @serverless-stack/[email protected] @serverless-stack/[email protected]
sst - v0.29.1

Published by fwang over 3 years ago

Revert #476 App: add account property (@fwang)


Update using:

$ npm install --save --save-exact @serverless-stack/[email protected] @serverless-stack/[email protected]
sst - v0.29.0

Published by fwang over 3 years ago

πŸš€ Enhancement

  • #476 App: add account property (@fwang)
  • #475 StaticSite: support granular cacheControl and variable replacement (@fwang)

πŸ“ Documentation


Update using:

$ npm install --save --save-exact @serverless-stack/[email protected] @serverless-stack/[email protected]
sst - v0.28.1

Published by fwang over 3 years ago

πŸ› Bug Fix

  • #468 sst start: .env variables not available when deploying debug stack (@fwang)
  • #465 Api: support setting domain to an SSM value (@fwang)

Update using:

$ npm install --save --save-exact @serverless-stack/[email protected] @serverless-stack/[email protected]
sst - v0.28.0

Published by fwang over 3 years ago

πŸš€ Enhancement

  • #463 StaticSite: allow configuring the default behaviour (@fwang)

πŸ“ Documentation

  • #449 Updating VS Code docs with the --increase-timeout option (@jayair)

Update using:

$ npm install --save --save-exact @serverless-stack/[email protected] @serverless-stack/[email protected]