Nick Laffey
08/06/2021, 7:02 PMStaticSite
construct and deploying and removing was working fine until a few days ago. I’m doing sst remove --stage MyStageName
in a Github action. It’s throwing an error because the path/folder to the distribution files doesn’t exist… But I don’t see why that should matter though if I’m destroying the stack? If I build before destroying it works fine. Am I missing something? Is there a good reason to need to build my static site before destroying or was an issue introduced recently? Again, it seems like this just started happening recently. I’ll see if I can track down whether we did an sst upgrade.thdxr
08/06/2021, 7:07 PMthdxr
08/06/2021, 7:07 PMNick Laffey
08/06/2021, 7:10 PMNick Laffey
08/06/2021, 7:30 PMNick Laffey
08/06/2021, 7:33 PMNick Laffey
08/06/2021, 7:37 PMthdxr
08/06/2021, 7:56 PMecho
when scope.skipBuild
is truethdxr
08/06/2021, 7:56 PMthdxr
08/06/2021, 7:57 PMNick Laffey
08/06/2021, 7:57 PMNick Laffey
08/06/2021, 7:58 PMsst remove
option?thdxr
08/06/2021, 7:58 PMNick Laffey
08/06/2021, 7:59 PMnew StaticSite(this, "StorybookSite", {
path: "./storybook-dist",
customDomain: {
domainName,
hostedZone,
certificate
},
buildCommand: scope.skipBuild ? "echo" : undefined
});
Nick Laffey
08/06/2021, 7:59 PMthdxr
08/06/2021, 8:00 PMskipBuild
I'm curious to see if it's correctly being set to true because looking over the StaticSite construct it is looking at thatNick Laffey
08/06/2021, 8:03 PMNick Laffey
08/06/2021, 8:04 PMNick Laffey
08/06/2021, 8:04 PMRemoving nlaffey-iridium-storybook-debug-stack stack
✅ nlaffey-iridium-storybook-debug-stack
Removing stacks
---- scope.skipBuild: true
Error: No path found at "/Users/nickl/git/chimera/apps/components/storybook-dist" for the "StorybookSite" StaticSite.
at StaticSite.buildApp (/Users/nickl/git/chimera/common/temp/node_modules/.pnpm/@serverless-stack+resources@0.36.0/node_modules/@serverless-stack/resources/src/StaticSite.ts:236:13)
thdxr
08/06/2021, 8:26 PMNick Laffey
08/06/2021, 8:27 PMthdxr
08/09/2021, 8:51 PM