Skip to content

Commit

Permalink
Try image error handling
Browse files Browse the repository at this point in the history
Signed-off-by: Olga Bulat <[email protected]>
  • Loading branch information
obulat committed May 8, 2024
1 parent ebe2f4b commit 14df293
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions frontend/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,8 @@ export default defineNuxtConfig({
vueI18n: "./src/vue-i18n",
},
plausible: {
logIgnoredEvents: true,
logIgnoredEvents: !isProd,
trackLocalhost: !isProdNotPlaywright && !isTest,
// ignoredHostnames: isProdNotPlaywright ? [] : ["localhost"],
// This is the current domain of the site.
domain:
process.env.SITE_DOMAIN ??
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/middleware/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
handledClientSide,
createError,
useNuxtApp,
showError,
} from "#imports"

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

const fetchingError = mediaStore.fetchState.fetchingError
if (!results.length && fetchingError && !handledClientSide(fetchingError)) {
throw createError(fetchingError)
showError(createError(fetchingError))
}
}
})

0 comments on commit 14df293

Please sign in to comment.