Is it possible when creating a project to choose a...
# help
a
Is it possible when creating a project to choose a different language for the app versus for CDK? Example: App using Go while CDK is Typescript
r
I haven't tried myself but in
index.ts
you can do
Copy code
app.setDefaultFunctionProps({
    runtime: "nodejs14.x",
});
Or even set the runtime on a per-function basis My hope is sst would just compile each function with the given runtime and things like live lambda development would magically work 🤞🧙 In reality there's probably going to be at least some additional config
f
You can create a new project in different languages like this https://docs.serverless-stack.com/installation#python
a
Thanks guys, it looks like manually switching the language for CDK is the way to go. @Frank Thanks for the links, however they seem to point to setting up the language for the entire project. I'm looking to choose one language for the app and another language for CDK.