diff --git a/src/utils/metadata.ts b/src/utils/metadata.ts index e710892..ade5c96 100644 --- a/src/utils/metadata.ts +++ b/src/utils/metadata.ts @@ -10,7 +10,7 @@ import { } from './metadata.schema.ts'; import sortVersions from './sort.ts'; -const base = env.METADATA_BASE || 'https://metadata.speedcdnjs.com'; +const base = env.METADATA_BASE || 'https://metadata.cdnjs.cloudflare.com'; /** * Get a list of libraries. diff --git a/wrangler.toml b/wrangler.toml index 7dfdf86..f5e8675 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -51,7 +51,7 @@ head_sampling_rate = 1 [env.staging.vars] DISABLE_LOGGING = true DISABLE_CACHING = false -METADATA_BASE = "" +METADATA_BASE = "https://metadata-staging.cdnjs.cloudflare.com" SENTRY_DSN = "" # Will be injected by build pipeline SENTRY_RELEASE = "" # Will be injected by build pipeline SENTRY_ENVIRONMENT = "staging" @@ -72,7 +72,7 @@ head_sampling_rate = 0.05 [env.production.vars] DISABLE_LOGGING = true DISABLE_CACHING = false -METADATA_BASE = "" +METADATA_BASE = "https://metadata.cdnjs.cloudflare.com" SENTRY_DSN = "" # Will be injected by build pipeline SENTRY_RELEASE = "" # Will be injected by build pipeline SENTRY_ENVIRONMENT = "production"