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: update jsdelivr to unpkg as jsdelivr is blocked in some regions #313

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/core/src/components/providers/dash/dash.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export class Dash implements MediaFileProvider<any> {
try {
const url =
this.libSrc ||
`https://cdn.jsdelivr.net/npm/dashjs@${this.version}/dist/dash.all.min.js`;
`https://unpkg.com/dashjs@${this.version}/dist/dash.all.min.js`;

const DashSDK = (await loadSDK(url, 'dashjs')) as any;

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/providers/hls/hls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export class HLS implements MediaFileProvider {
try {
const url =
this.libSrc ||
`https://cdn.jsdelivr.net/npm/hls.js@${this.version}/dist/hls.min.js`;
`https://unpkg.com/hls.js@${this.version}/dist/hls.min.js`;

const Hls = (await loadSDK(url, 'Hls')) as any;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export type IconLibraryResolver = (name: string) => string;
export const ICONS_BASE_CDN_URL =
process.env.NODE_ENV === 'development'
? '/icons'
: 'https://cdn.jsdelivr.net/npm/@vime/core@latest/icons';
: 'https://unpkg.com/@vime/core@5.3.1/icons';

const registry = new Map<string, IconLibraryResolver>(
Object.entries({
Expand Down