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

Load JS view assets from CDN when applicable #1958

Merged
merged 3 commits into from
Jun 7, 2023
Merged

Conversation

jonatanklosko
Copy link
Member

Closes #1866.

@github-actions
Copy link

github-actions bot commented Jun 5, 2023

Uffizzi Preview deployment-27641 was deleted.

Comment on lines +401 to +406
if (!isPublicAccessible && this.props.assetsCdnUrl) {
return this.props.assetsCdnUrl;
} else {
return window.location.origin + this.props.assetsBasePath;
}
});
Copy link
Member Author

Choose a reason for hiding this comment

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

I reverted the logic, instead of checking if the CDN is accessible, we check if Livebook /public is accessible and only fallback to CDN if not (if the CDN points to a private package it would fail either way). This way the check is simpler and we do it only once.

@jonatanklosko jonatanklosko merged commit de4d46f into main Jun 7, 2023
7 checks passed
@jonatanklosko jonatanklosko deleted the jk-remote-assets branch June 7, 2023 12:26
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.

Allow Kino to declare its GitHub name and version for assets
2 participants