Update dependencies

This commit is contained in:
2024-02-22 17:59:48 +01:00
parent 8fdf118468
commit eb402ad431
4 changed files with 452 additions and 258 deletions

View File

@@ -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,
})