Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix No path found at for StaticSite Construct #3485

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

suil
Copy link
Contributor

@suil suil commented Nov 5, 2023

For building StaticSite, buildCommand will create a build folder. so we should check the existence of the build folder after running the buildCommand.

Copy link

changeset-bot bot commented Nov 5, 2023

🦋 Changeset detected

Latest commit: 5c4ba58

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
sst Patch
@sst/console Patch
create-sst Patch
astro-sst Patch
svelte-kit-sst Patch
solid-start-sst Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Comment on lines -528 to -536
// validate site path exists
if (!fs.existsSync(sitePath)) {
throw new Error(
`No path found at "${path.resolve(sitePath)}" for the "${
this.node.id
}" StaticSite.`
);
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey @suil this is checking the path to the site, not the output generated by the build command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants