From 1de80d7e715df2a1e98f4003e8950223307c5cd0 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Tue, 9 Jun 2026 22:11:55 +0100 Subject: [PATCH] refactor: reorg --- nuxt.config.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index 41699a82..0b71d39a 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -157,18 +157,20 @@ export default defineNuxtConfig({ }, routeRules: { - '/admin/**': { prerender: false }, - '/api/admin/**': { prerender: false }, ...Object.fromEntries(Object.keys(pageMeta).flatMap(path => [ [path, { swr: 60 * 60 }], [path + '.md', { swr: 60 * 60 }], ])), + '/admin/**': { prerender: false }, + // api routes + '/api/admin/**': { prerender: false }, '/api/talks': { swr: 60 * 60 }, '/api/upcoming-conferences': { swr: 60 * 60 }, '/api/uses': { swr: 60 * 60 }, '/api/current-location': { swr: 60 * 5 }, '/api/sponsors': { prerender: true }, '/api/hi': { cors: true }, + // redirects '/feed.xml': { redirect: '/rss.xml' }, '/work': { redirect: '/projects' }, '/thumbnail/**': { cache: { maxAge: 60 * 60 * 24 * 365 } }, -- 2.51.2