mirror of
https://github.com/ArthurDanjou/website.git
synced 2026-01-19 22:41:41 +01:00
Update dependencies
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
/* eslint-disable node/prefer-global/process */
|
||||
export default defineNuxtRouteMiddleware((to) => {
|
||||
if (to.path === '/bookmarks' || to.path === '/writing') {
|
||||
if (to.path === '/bookmarks' || to.path === '/writing' && process.env.NODE_ENV !== 'development') {
|
||||
return navigateTo('/', {
|
||||
redirectCode: 301,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user