mirror of
https://github.com/afoim/fuwari.git
synced 2026-01-31 09:03:18 +08:00
refactor(配置): 将重定向规则从vercel和edgeone迁移至astro配置
将原本分散在vercel.json和edgeone.json中的重定向规则统一迁移到astro.config.mjs中,简化配置管理
This commit is contained in:
@@ -39,7 +39,16 @@ export default defineConfig({
|
|||||||
output: "static",
|
output: "static",
|
||||||
redirects: {
|
redirects: {
|
||||||
"/donate": "/sponsors",
|
"/donate": "/sponsors",
|
||||||
"/donate/": "/sponsors/"
|
"/ak": "https://akile.io/register?aff_code=503fe5ea-e7c5-4d68-ae05-6de99513680e",
|
||||||
|
"/kook": "https://kook.vip/K29zpT",
|
||||||
|
"/long": "https://iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii.iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii.in/",
|
||||||
|
"/mly": "https://muleyun.com/aff/GOTRJLPN",
|
||||||
|
"/tg": "https://t.me/+_07DERp7k1ljYTc1",
|
||||||
|
"/tit": "/posts/pin/",
|
||||||
|
"/tly": "https://tianlicloud.cn/aff/HNNCFKGP",
|
||||||
|
"/wly": "https://wl.awcmam.com/#/register?code=FNQwOQBM",
|
||||||
|
"/yyb": "https://www.rainyun.com/acofork_?s=bilibili",
|
||||||
|
"/iku": "https://ikuuu.de/auth/register?code=Bjou"
|
||||||
},
|
},
|
||||||
integrations: [tailwind({
|
integrations: [tailwind({
|
||||||
nesting: true,
|
nesting: true,
|
||||||
@@ -184,4 +193,4 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
59
edgeone.json
59
edgeone.json
@@ -1,59 +1,2 @@
|
|||||||
{
|
{
|
||||||
"redirects": [
|
}
|
||||||
{
|
|
||||||
"source": "/ak",
|
|
||||||
"destination": "https://akile.io/register?aff_code=503fe5ea-e7c5-4d68-ae05-6de99513680e",
|
|
||||||
"statusCode": 302
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"source": "/kook",
|
|
||||||
"destination": "https://kook.vip/K29zpT",
|
|
||||||
"statusCode": 302
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"source": "/long",
|
|
||||||
"destination": "https://iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii.iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii.in/",
|
|
||||||
"statusCode": 302
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"source": "/mly",
|
|
||||||
"destination": "https://muleyun.com/aff/GOTRJLPN",
|
|
||||||
"statusCode": 302
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"source": "/tg",
|
|
||||||
"destination": "https://t.me/+_07DERp7k1ljYTc1",
|
|
||||||
"statusCode": 302
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"source": "/tit",
|
|
||||||
"destination": "/posts/pin/",
|
|
||||||
"statusCode": 302
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"source": "/tly",
|
|
||||||
"destination": "https://tianlicloud.cn/aff/HNNCFKGP",
|
|
||||||
"statusCode": 302
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"source": "/wly",
|
|
||||||
"destination": "https://wl.awcmam.com/#/register?code=FNQwOQBM",
|
|
||||||
"statusCode": 302
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"source": "/yyb",
|
|
||||||
"destination": "https://www.rainyun.com/acofork_?s=bilibili",
|
|
||||||
"statusCode": 302
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"source": "/iku",
|
|
||||||
"destination": "https://ikuuu.de/auth/register?code=Bjou",
|
|
||||||
"statusCode": 302
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"source": "/donate",
|
|
||||||
"destination": "/sponsors",
|
|
||||||
"statusCode": 302
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,37 +1,37 @@
|
|||||||
---
|
---
|
||||||
import type { MarkdownHeading } from "astro";
|
import type { MarkdownHeading } from "astro";
|
||||||
|
|
||||||
import Profile from "./Profile.astro";
|
import Profile from "./Profile.astro";
|
||||||
import Tag from "./Tags.astro";
|
import Tag from "./Tags.astro";
|
||||||
import DomainSwitcher from "./DomainSwitcher.astro";
|
import DomainSwitcher from "./DomainSwitcher.astro";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
class?: string;
|
class?: string;
|
||||||
headings?: MarkdownHeading[];
|
headings?: MarkdownHeading[];
|
||||||
}
|
}
|
||||||
|
|
||||||
const className = Astro.props.class;
|
const className = Astro.props.class;
|
||||||
---
|
---
|
||||||
<div id="sidebar" class:list={[className, "w-full"]}>
|
<div id="sidebar" class:list={[className, "w-full"]}>
|
||||||
<div class="flex flex-col w-full gap-4 mb-4">
|
<div class="flex flex-col w-full gap-4 mb-4">
|
||||||
<Profile></Profile>
|
<Profile></Profile>
|
||||||
</div>
|
</div>
|
||||||
<div id="sidebar-sticky" class="transition-all duration-700 flex flex-col w-full gap-4 top-4 sticky top-4">
|
<div id="sidebar-sticky" class="transition-all duration-700 flex flex-col w-full gap-4 top-4 sticky top-4">
|
||||||
<DomainSwitcher class="onload-animation" style="animation-delay: 150ms"></DomainSwitcher>
|
<DomainSwitcher class="onload-animation" style="animation-delay: 150ms"></DomainSwitcher>
|
||||||
<Tag class="onload-animation" style="animation-delay: 200ms"></Tag>
|
<Tag class="onload-animation" style="animation-delay: 200ms"></Tag>
|
||||||
<!-- 赞助标 -->
|
<!-- 赞助标 -->
|
||||||
<div class="overflow-hidden flex justify-center">
|
<div class="overflow-hidden flex justify-center">
|
||||||
<a href="https://secbit.ai/" target="_blank" rel="noopener noreferrer">
|
<a href="https://secbit.ai/" target="_blank" rel="noopener noreferrer">
|
||||||
<img src="/aff/secbit-banner-1.gif" alt="Secbit" class="w-full max-w-[280px] rounded-lg hover:opacity-90 transition-opacity" />
|
<img src="/aff/secbit-banner-1.gif" alt="Secbit" class="w-full max-w-[280px] rounded-lg hover:opacity-90 transition-opacity" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="overflow-hidden flex justify-center">
|
<div class="overflow-hidden flex justify-center">
|
||||||
<iframe
|
<iframe
|
||||||
src="https://support.nodeget.com/page/promotion?id=316"
|
src="https://support.nodeget.com/page/promotion?id=316"
|
||||||
style="border:none; border-radius:8px; height:270px; width:100%; max-width:280px;
|
style="border:none; border-radius:8px; height:270px; width:100%; max-width:280px;
|
||||||
transform: scale(1.0); transform-origin: center top;"
|
transform: scale(1.0); transform-origin: center top;"
|
||||||
></iframe>
|
></iframe>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
57
vercel.json
57
vercel.json
@@ -1,59 +1,2 @@
|
|||||||
{
|
{
|
||||||
"redirects": [
|
|
||||||
{
|
|
||||||
"source": "/ak",
|
|
||||||
"destination": "https://akile.io/register?aff_code=503fe5ea-e7c5-4d68-ae05-6de99513680e",
|
|
||||||
"permanent": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"source": "/kook",
|
|
||||||
"destination": "https://kook.vip/K29zpT",
|
|
||||||
"permanent": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"source": "/long",
|
|
||||||
"destination": "https://iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii.iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii.in/",
|
|
||||||
"permanent": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"source": "/mly",
|
|
||||||
"destination": "https://muleyun.com/aff/GOTRJLPN",
|
|
||||||
"permanent": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"source": "/tg",
|
|
||||||
"destination": "https://t.me/+_07DERp7k1ljYTc1",
|
|
||||||
"permanent": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"source": "/tit",
|
|
||||||
"destination": "/posts/pin/",
|
|
||||||
"permanent": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"source": "/tly",
|
|
||||||
"destination": "https://tianlicloud.cn/aff/HNNCFKGP",
|
|
||||||
"permanent": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"source": "/wly",
|
|
||||||
"destination": "https://wl.awcmam.com/#/register?code=FNQwOQBM",
|
|
||||||
"permanent": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"source": "/yyb",
|
|
||||||
"destination": "https://www.rainyun.com/acofork_?s=bilibili",
|
|
||||||
"permanent": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"source": "/iku",
|
|
||||||
"destination": "https://ikuuu.de/auth/register?code=Bjou",
|
|
||||||
"permanent": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"source": "/donate",
|
|
||||||
"destination": "/sponsors",
|
|
||||||
"permanent": false
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user