chore: 更新网站域名及相关配置为acofork.com

- 将主域名从2x.nz更改为acofork.com
- 移除侧边栏中的DomainSwitcher组件
- 更新所有相关配置中的域名引用
- 修改统计和图片服务的URL为新域名
This commit is contained in:
二叉树树
2025-12-09 20:45:09 +08:00
parent ee5d021b3b
commit 56fe7cf633
4 changed files with 7 additions and 8 deletions

View File

@@ -33,7 +33,7 @@ export default defineConfig({
image: {
service: passthroughImageService()
},
site: "https://2x.nz",
site: "https://acofork.com",
base: "/",
trailingSlash: "always",
output: "static",

View File

@@ -17,7 +17,6 @@ const className = Astro.props.class;
<Profile></Profile>
</div>
<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>
<Tag class="onload-animation" style="animation-delay: 200ms"></Tag>
<!-- 赞助标 -->
<div class="overflow-hidden flex justify-center">

View File

@@ -37,7 +37,7 @@ export const siteConfig: SiteConfig = {
},
background: {
enable: true, // Enable background image
src: "https://eopfapi.b.2.f.f.0.7.4.0.1.0.0.2.ip6.arpa/pic?img=ua", // Background image URL (supports HTTPS)
src: "https://eopfapi.acofork.com.com/pic?img=ua", // Background image URL (supports HTTPS)
position: "center", // Background position: 'top', 'center', 'bottom'
size: "cover", // Background size: 'cover', 'contain', 'auto'
repeat: "no-repeat", // Background repeat: 'no-repeat', 'repeat', 'repeat-x', 'repeat-y'
@@ -57,7 +57,7 @@ export const siteConfig: SiteConfig = {
},
],
officialSites: [
{ url: "https://blog.2b2x.cn", alias: "EdgeOne CN" },
{ url: "https://acofork.com", alias: "EdgeOne CN" },
{ url: "https://2x.nz", alias: "Vercel" },
{ url: "https://b.2.f.f.0.7.4.0.1.0.0.2.ip6.arpa", alias: "Cloudflare" },
@@ -81,7 +81,7 @@ export const navBarConfig: NavBarConfig = {
},
{
name: "统计",
url: "https://umami.2b2x.cn/share/CdkXbGgZr6ECKOyK", // Internal links should not include the base path, as it is automatically added
url: "https://umami.acofork.com/share/CdkXbGgZr6ECKOyK", // Internal links should not include the base path, as it is automatically added
external: true, // Show an external link icon and will open in a new tab
},
{
@@ -118,13 +118,13 @@ export const licenseConfig: LicenseConfig = {
export const imageFallbackConfig: ImageFallbackConfig = {
enable: true,
originalDomain: "eopfapi.2b2x.cn",
originalDomain: "eopfapi.acofork.com",
fallbackDomain: "eopfapi.b.2.f.f.0.7.4.0.1.0.0.2.ip6.arpa/pic?img=ua",
};
export const umamiConfig: UmamiConfig = {
enable: true,
baseUrl: "https://umami.2b2x.cn",
baseUrl: "https://umami.acofork.com",
shareId: "CdkXbGgZr6ECKOyK",
timezone: "Asia/Shanghai",
};

View File

@@ -242,7 +242,7 @@ const bannerOffset =
<link rel="alternate" type="application/rss+xml" title={profileConfig.name} href={`${Astro.site}rss.xml`}/>
<!-- Umami分析自建 -->
<script defer src="https://umami.2b2x.cn/script.js" data-website-id="5d710dbd-3a2e-43e3-a553-97b415090c63" data-swup-ignore-script></script>
<script defer src="https://umami.acofork.com/script.js" data-website-id="5d710dbd-3a2e-43e3-a553-97b415090c63" data-swup-ignore-script></script>
{/* <!-- Umami分析云-备用) -->
<script defer src="https://cloud.umami.is/script.js" data-website-id="5d710dbd-3a2e-43e3-a553-97b415090c63" data-swup-ignore-script></script> */}
<!-- 百度统计 -->