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: avoid imports of not installed packages when setup SSG #4763

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

TrySound
Copy link
Member

SSG templates have @webstudio-is/image imports which is not installed when prebuild.ts imports constants.mjs.

Here removed URL.canParse checks in favor of netlify and vercel domains configuration.

SSG templates have @webstudio-is/image imports which is not installed
when prebuild.ts imports constants.mjs.

Here removed URL.canParse checks in favor of netlify and vercel
domains configuration.
@TrySound TrySound requested review from kof and istarkov January 20, 2025 14:24
Copy link
Member

@kof kof left a comment

Choose a reason for hiding this comment

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

why not inline the canParse utility? also there is URL.canParse

@TrySound
Copy link
Member Author

It's just not needed at all. Users should configure optimization of remote images.

@TrySound TrySound merged commit 79db5d8 into main Jan 20, 2025
27 checks passed
@TrySound TrySound deleted the fix-ssg.staging branch January 20, 2025 15:50
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.

2 participants