diff --git a/astro.config.mjs b/astro.config.mjs index eaa55e0d8..e4f7f1fd1 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -31,7 +31,45 @@ import { pluginCustomCopyButton } from "./src/plugins/expressive-code/custom-cop export default defineConfig({ site: "https://www.2x.nz", base: "/", - trailingSlash: "always", + trailingSlash: "ignore", + redirects: { + "/ak": { + destination: "https://akile.io/register?aff_code=503fe5ea-e7c5-4d68-ae05-6de99513680e", + status: 302, + }, + "/kook": { + destination: "https://kook.vip/K29zpT", + status: 302, + }, + "/long": { + destination: "https://iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii.iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii.in/", + status: 302, + }, + "/mly": { + destination: "https://muleyun.com/aff/GOTRJLPN", + status: 302, + }, + "/tg": { + destination: "https://t.me/+_07DERp7k1ljYTc1", + status: 302, + }, + "/tit": { + destination: "/posts/pin/", + status: 302, + }, + "/tly": { + destination: "https://tianlicloud.cn/aff/HNNCFKGP", + status: 302, + }, + "/wly": { + destination: "https://wl.awcmam.com/#/register?code=FNQwOQBM", + status: 302, + }, + "/yyb": { + destination: "https://www.rainyun.com/acofork_?s=bilibili", + status: 302, + }, + }, integrations: [tailwind({ nesting: true, }), swup({ diff --git a/src/pages/ak.astro b/src/pages/ak.astro deleted file mode 100644 index 3e86d4a2d..000000000 --- a/src/pages/ak.astro +++ /dev/null @@ -1,6 +0,0 @@ ---- -return Astro.redirect( - "https://akile.io/register?aff_code=503fe5ea-e7c5-4d68-ae05-6de99513680e", - 301, -); ---- \ No newline at end of file diff --git a/src/pages/kook.astro b/src/pages/kook.astro deleted file mode 100644 index 4004e552b..000000000 --- a/src/pages/kook.astro +++ /dev/null @@ -1,3 +0,0 @@ ---- -return Astro.redirect("https://kook.vip/K29zpT", 301); ---- \ No newline at end of file diff --git a/src/pages/long.astro b/src/pages/long.astro deleted file mode 100644 index 7e3041957..000000000 --- a/src/pages/long.astro +++ /dev/null @@ -1,6 +0,0 @@ ---- -return Astro.redirect( - "https://iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii.iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii.in/", - 301, -); ---- \ No newline at end of file diff --git a/src/pages/mly.astro b/src/pages/mly.astro deleted file mode 100644 index 8bb0ae287..000000000 --- a/src/pages/mly.astro +++ /dev/null @@ -1,3 +0,0 @@ ---- -return Astro.redirect("https://muleyun.com/aff/GOTRJLPN", 301); ---- \ No newline at end of file diff --git a/src/pages/qq.astro b/src/pages/qq.astro deleted file mode 100644 index c3a17c3af..000000000 --- a/src/pages/qq.astro +++ /dev/null @@ -1,3 +0,0 @@ ---- -return Astro.redirect("/posts/qq/", 301); ---- \ No newline at end of file diff --git a/src/pages/tg.astro b/src/pages/tg.astro deleted file mode 100644 index 5b9c86cff..000000000 --- a/src/pages/tg.astro +++ /dev/null @@ -1,3 +0,0 @@ ---- -return Astro.redirect("https://t.me/+_07DERp7k1ljYTc1", 301); ---- \ No newline at end of file diff --git a/src/pages/tit.astro b/src/pages/tit.astro deleted file mode 100644 index 2da71a109..000000000 --- a/src/pages/tit.astro +++ /dev/null @@ -1,3 +0,0 @@ ---- -return Astro.redirect("/posts/pin/", 301); ---- \ No newline at end of file diff --git a/src/pages/tly.astro b/src/pages/tly.astro deleted file mode 100644 index 076c5d6f3..000000000 --- a/src/pages/tly.astro +++ /dev/null @@ -1,3 +0,0 @@ ---- -return Astro.redirect("https://tianlicloud.cn/aff/HNNCFKGP", 301); ---- \ No newline at end of file diff --git a/src/pages/wly.astro b/src/pages/wly.astro deleted file mode 100644 index 8bdbfcbbf..000000000 --- a/src/pages/wly.astro +++ /dev/null @@ -1,3 +0,0 @@ ---- -return Astro.redirect("https://wl.awcmam.com/#/register?code=FNQwOQBM", 301); ---- \ No newline at end of file diff --git a/src/pages/yyb.astro b/src/pages/yyb.astro deleted file mode 100644 index b63c5058d..000000000 --- a/src/pages/yyb.astro +++ /dev/null @@ -1,3 +0,0 @@ ---- -return Astro.redirect("https://www.rainyun.com/acofork_?s=bilibili", 301); ---- \ No newline at end of file