Skip to content

Commit

Permalink
reload sst.config.ts after add
Browse files Browse the repository at this point in the history
  • Loading branch information
thdxr committed Mar 12, 2024
1 parent e08ba20 commit f54d68f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 7 additions & 0 deletions cmd/sst/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,13 @@ This is useful if you want to run multiple commands, all while accessing the lin
if err != nil {
return err
}
p, err = project.New(&project.ProjectConfig{
Version: version,
Config: cfgPath,
})
if err != nil {
return err
}
err = p.Install()
if err != nil {
return err
Expand Down
6 changes: 1 addition & 5 deletions examples/cf-backend/sst.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ export default $config({
name: "cf-backend",
removalPolicy: input?.stage === "production" ? "retain" : "remove",
backend: "cloudflare",
providers: {
aws: {},
cloudflare: {},
github: {},
},
providers: { cloudflare: {}, github: {} },
};
},
async run() {
Expand Down

0 comments on commit f54d68f

Please sign in to comment.