We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6c8acc commit 1f86449Copy full SHA for 1f86449
1 file changed
modules/runtime/server/cache.ts
@@ -241,7 +241,8 @@ function getMockForUrl(url: string): MockResult | null {
241
}
242
243
// Algolia npm-search API - return mock popular packages
244
- if (host.endsWith('-dsn.algolia.net') && pathname.endsWith('/query')) {
+ const algoliaHost = `${useRuntimeConfig().public.algolia.appId.toLowerCase()}-dsn.algolia.net`
245
+ if (host === algoliaHost && pathname.endsWith('/query')) {
246
return {
247
data: {
248
hits: [
0 commit comments