Ryan Barnes
04/19/2022, 7:22 PMNeil Balcombe
04/26/2022, 1:12 PMconst root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<Router>
<React.StrictMode>
<App />
</React.StrictMode>
</Router>
Adam Fanello
05/04/2022, 9:36 PMrun
after npx
, just npx tsc --noEmit
Nathan
05/06/2022, 2:55 PMAdam Fanello
05/06/2022, 10:29 PMAdam Fanello
05/06/2022, 10:29 PMScript
, KinesisStream
, and WebSocketApi
components, defaultFunctionProps
is now defaults.function
Alex Rayo
05/07/2022, 2:41 PMiery
05/10/2022, 7:01 AMscope
seems to be a typo for stack
. Am I right?
export function MyStack({ stack }: StackContext) {
scope.stage; // "dev"
scope.region; // "us-east-1"
scope.name; // "my-sst-app"
}
Martin Pllu
05/10/2022, 6:25 PMnpm init sst
. The project uses @serverless-stack/resources 1.0.4
which appears to be incompatible with some of the other docs. For example, https://docs.serverless-stack.com/api#authentication refers to defaultAuthorizationType
which does not exist in the API props in this version. I found some other examples of this, for example cognito
is missing from Auth props.
If however I use npx create-serverless-stack@latest --language typescript myproject
as per the Guide, the project uses @serverless-stack/resources 0.69.7
which appears to be aligned with the Docs as well as the Guide.
Can you please advise on the recommended version and command to create a new project? Unless I've missed something obvious, it may also be worth updating the docs.Adrian Schweizer
05/17/2022, 11:02 PM// to
{
defaults: {
functionProps: { timeout: 10 },
it should be
// to
{
defaults: {
function: { timeout: 10 },
Or at least I get a complaint in the console with the former, but not the latter setupEmanuel Bohnenkamp
05/18/2022, 12:03 AMKevin Grimm
05/18/2022, 2:41 AMDeploy to S3
section, looks like this line is outdated:
This packages all of our assets and places them in the build/ directory.
The Next.js docs indicate the output goes into the .next
folder: https://nextjs.org/docs/deployment
Could be that this is IRT a config earlier in the guide but figured I would flag regardless.Richard Simpson
05/18/2022, 6:33 PMKlaus
05/21/2022, 1:01 AM.env
file. While all worked as expected for my normal stack, the tags were missing in the DebugStack.
The reason for that is the changed run directory during debug stack initialization, which means the environment isn't behaving as I expected.Jirawat Uttayaya
05/23/2022, 10:28 AMNeil Balcombe
05/23/2022, 1:31 PMIdentityPoolId: auth.cognitoCfnIdentityPool.ref
is not recognised.
I had to change to
IdentityPoolId: auth.cognitoIdentityPoolId ? auth.cognitoIdentityPoolId : "none",
To get it to work correctly.Klaus
05/23/2022, 7:17 PMRudi
05/23/2022, 8:09 PMexport default function main(app) {
app.setDefaultFunctionProps({
runtime: "nodejs16.x",
srcPath: "backend",
bundle: {
format: "esm",
},
})
const storageStack = new StorageStack(app, "storage")
app.stack(storageStack).stack(ApiStack)
}
but now get:
Stacks: Building changes...
Stacks: Synthesizing changes...
TypeError: fn is not a function
at stack (/home/rudi/projects/notes/node_modules/@serverless-stack/resources/src/FunctionalStack.ts:23:19)
at App.stack (/home/rudi/projects/notes/node_modules/@serverless-stack/resources/src/App.ts:389:17)
at Object.main (/home/rudi/projects/notes/stacks/index.js:19:7)
at Object.<anonymous> (/home/rudi/projects/notes/.build/run.js:94:16)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47
manitej
05/25/2022, 3:12 AMmanitej
05/26/2022, 5:26 PMKlaus
05/27/2022, 12:19 PMp0wl
05/27/2022, 12:24 PMTonny (sstNerd)
05/28/2022, 7:11 AMMischa Spiegelmock
05/28/2022, 8:35 PMMischa Spiegelmock
05/28/2022, 11:15 PMmanitej
05/30/2022, 4:14 PMNeil Balcombe
05/31/2022, 2:51 PMBob Wall
05/31/2022, 4:58 PM// Show the endpoint in the output
stack.addOutputs({
BucketName: bucket.bucketName,
});
Jan Nylund
06/05/2022, 12:04 PMTony J
06/09/2022, 4:12 AM