Skip to content
2 changes: 2 additions & 0 deletions apps/frontend/src/middleware/project.global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ const PROJECT_TYPES = [
]

export default defineNuxtRouteMiddleware(async (to) => {
// Only run this middleware on the server - it relies on server-only runtime config
if (import.meta.client) return
// Only handle project routes
if (!to.params.id || !PROJECT_TYPES.includes(to.params.type as string)) {
return
Expand Down