Skip to content

Commit 14df293

Browse files
committed
Try image error handling
Signed-off-by: Olga Bulat <[email protected]>
1 parent ebe2f4b commit 14df293

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

frontend/nuxt.config.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,8 @@ export default defineNuxtConfig({
153153
vueI18n: "./src/vue-i18n",
154154
},
155155
plausible: {
156-
logIgnoredEvents: true,
156+
logIgnoredEvents: !isProd,
157157
trackLocalhost: !isProdNotPlaywright && !isTest,
158-
// ignoredHostnames: isProdNotPlaywright ? [] : ["localhost"],
159158
// This is the current domain of the site.
160159
domain:
161160
process.env.SITE_DOMAIN ??

frontend/src/middleware/search.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
handledClientSide,
66
createError,
77
useNuxtApp,
8+
showError,
89
} from "#imports"
910

1011
import { useMediaStore } from "~/stores/media"
@@ -51,7 +52,7 @@ export const searchMiddleware = defineNuxtRouteMiddleware(async (to) => {
5152

5253
const fetchingError = mediaStore.fetchState.fetchingError
5354
if (!results.length && fetchingError && !handledClientSide(fetchingError)) {
54-
throw createError(fetchingError)
55+
showError(createError(fetchingError))
5556
}
5657
}
5758
})

0 commit comments

Comments
 (0)