2023-02-05 13:10:19 +01:00
|
|
|
export default defineNuxtRouteMiddleware(async (to) => {
|
2024-02-24 17:46:14 +01:00
|
|
|
if (import.meta.server || !useRuntimeConfig().public.singleInstance)
|
2023-02-05 13:10:19 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
if (to.params.server) {
|
|
|
|
const newTo = { ...to }
|
|
|
|
delete newTo.params.server
|
|
|
|
return newTo
|
|
|
|
}
|
|
|
|
})
|