refactor: move single instance config to runtime (#1664)
This commit is contained in:
parent
9e09c9072f
commit
2128d11238
6 changed files with 6 additions and 6 deletions
|
@ -24,7 +24,7 @@ export default defineNuxtRouteMiddleware(async (to, from) => {
|
|||
return
|
||||
|
||||
// Handle redirecting to new permalink structure for users with old links
|
||||
if (!useAppConfig().singleInstanceServer && !to.params.server) {
|
||||
if (!useRuntimeConfig().public.singleInstance && !to.params.server) {
|
||||
return {
|
||||
...to,
|
||||
params: {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
export default defineNuxtRouteMiddleware(async (to) => {
|
||||
if (process.server || !useAppConfig().singleInstanceServer)
|
||||
if (process.server || !useRuntimeConfig().public.singleInstance)
|
||||
return
|
||||
|
||||
if (to.params.server) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue