Compare commits

...
6 Commits
Author SHA1 Message Date
Michael H. 0ab9100c46 Revert "fix: i18n nuxt context error"
This reverts commit a1b73d089e.
2026-08-28 16:30:32 +02:00
Michael H. a1b73d089e fix: i18n nuxt context error 2026-08-28 15:30:55 +02:00
Michael H. c2cbf16434 fix: use node cluster 2026-08-28 15:19:37 +02:00
Michael H. ff4c9be910 fix: 404 handling but actually 2026-08-28 15:14:47 +02:00
Truman Gao 98f8bbcad9 fix: 404 always logs error (#7341)
* fix: error page

* fix: nuxt always logs console error on 404

* Revert "fix: error page"

This reverts commit ec15bf3b40.
2026-08-28 13:27:54 +02:00
Prospector a9b774005b fix error pages (#7338) 2026-08-28 01:48:14 +00:00
5 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ jobs:
- name: Build frontend
run: pnpm web:build
env:
NITRO_PRESET: node-server
NITRO_PRESET: node_cluster
BUILD_ENV: ${{ steps.meta.outputs.env }}
CF_PAGES_BRANCH: ${{ github.ref_name }}
CF_PAGES_COMMIT_SHA: ${{ github.sha }}
+1 -1
View File
@@ -33,7 +33,7 @@ import {
import { useAuth } from './composables/auth'
const auth = await useAuth()
const userPreferences = setupProviders(auth)
const { userPreferences } = setupProviders(auth)
const cosmetics = useCosmetics()
const theme = useTheme()
const { locale, setLocale } = injectI18n()
+2 -3
View File
@@ -110,7 +110,6 @@ import {
commonMessages,
defineMessage,
defineMessages,
injectNotificationManager,
IntlFormatted,
LoadingBar,
normalizeChildren,
@@ -131,10 +130,10 @@ import { getSignInRouteObj } from '~/composables/auth.js'
import { setupProviders } from '~/providers/setup.ts'
const auth = await useAuth()
setupProviders(auth)
const { notificationManager } = setupProviders(auth)
const { formatMessage } = useVIntl()
const { addNotification } = injectNotificationManager()
const { addNotification } = notificationManager
const isSwitchingAccount = useIsSwitchingAccount()
const props = defineProps({
+1 -1
View File
@@ -28,5 +28,5 @@ export function setupProviders(auth: Awaited<ReturnType<typeof useAuth>>) {
setupLoadingStateProvider()
setupUserCountryProvider()
return userPreferences
return { userPreferences, notificationManager }
}
@@ -1,5 +1,8 @@
export default defineNitroPlugin((nitroApp) => {
nitroApp.hooks.hook('error', async (error, { event }) => {
const statusCode = (error as { statusCode?: number }).statusCode ?? 500
if (statusCode < 500) return
console.error(`[Context Error] at ${event?.path}:`, error)
})
})