Skip to content

Instantly share code, notes, and snippets.

View fwang's full-sized avatar
💻
$ sst dev

Frank fwang

💻
$ sst dev
View GitHub Profile
@fwang
fwang / circular-dependency.ts
Last active April 9, 2024 15:02
Demonstrate how to get around of circular dependencies in SST
import { Lazy } from "aws-cdk-lib";
import * as sst from "@serverless-stack/resources";
export class MainStack extends sst.Stack {
constructor(scope: sst.App, id: string) {
super(scope, id);
let site;
// Create Api
@fwang
fwang / launch.json.diff
Last active June 10, 2021 22:20
VSCode launch.json for SST
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug SST Start",
"type": "node",
"request": "launch",
- "runtimeExecutable": "npm",
- "runtimeArgs": ["start"],
+ "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/sst",