feat: update nuxt.config.ts with redirects for specific paths; remove index.vue and add desktop/index.vue for app structure

This commit is contained in:
yuanhau 2025-05-11 23:23:05 +08:00
parent 3c1eb8176b
commit 8b07d4b3be
4 changed files with 27 additions and 11 deletions

View file

@ -8,12 +8,15 @@ export default defineNuxtConfig({
"/api/rss/**": { swr: 3600 },
"/go/**": { ssr: true },
"/find/**": { ssr: true },
// Send ZIP bombs to troll bots
"/wp-admin/**": { redirect: "https://s3.yhw.tw/data/def-zip-bomb/wp-admin.php.zip" },
"/xmlrpc.php": { redirect: "https://s3.yhw.tw/data/def-zip-bomb/xmlrpc.php.zip" },
"/wp-login.php": { redirect: "https://s3.yhw.tw/data/def-zip-bomb/wp-login.php.zip" },
},
css: ["~/styles/main.css"],
modules: [
"@nuxt/image",
"@nuxtjs/robots",
"@nuxtjs/seo",
"@nuxtjs/i18n",