AwsLinker/lib/seo-config.ts
2025-09-16 17:19:58 +08:00

811 lines
30 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// SEO Configuration for all pages - Updated TDK Content
export interface SEOConfig {
title: string;
description: string;
keywords: string[];
openGraph?: {
title?: string;
description?: string;
type?: string;
images?: Array<{
url: string;
width?: number;
height?: number;
alt?: string;
}>;
};
twitter?: {
card?: string;
title?: string;
description?: string;
images?: string[];
};
alternates?: {
canonical?: string;
languages?: Record<string, string>;
};
}
export interface MultiLanguageSEO {
'zh-CN': SEOConfig;
'zh-TW': SEOConfig;
en: SEOConfig;
}
// Base SEO configuration
const baseSEO = {
siteName: {
'zh-CN': 'AwsLinker',
'zh-TW': 'AwsLinker',
en: 'DongYun Technology',
},
baseUrl: process.env.NEXT_PUBLIC_SITE_URL || 'https://dongyun.com',
defaultImage: '/images/og-default.jpg',
};
// Home page SEO - Updated
export const homeSEO: MultiLanguageSEO = {
'zh-CN': {
title: 'AwsLinker - 专业AWS云服务代理商 | 企业级云计算解决方案提供商',
description:
'AwsLinker是AWS官方认证合作伙伴专注提供企业级云计算解决方案。涵盖云服务器、云存储、云数据库、CDN加速等全栈云服务。7x24小时专业技术支持助力企业数字化转型升级。',
keywords: [
'AWS云服务',
'云计算解决方案',
'企业云服务',
'云服务器',
'云存储',
'云数据库',
'CDN加速',
'数字化转型',
'AwsLinker',
'AWS代理商',
'EC2实例',
'S3存储',
'RDS数据库',
'负载均衡',
'云安全',
'混合云',
'私有云',
'公有云',
'云迁移',
'云运维',
],
openGraph: {
title: 'AwsLinker - 专业AWS云服务代理商',
description: 'AWS官方认证合作伙伴提供企业级云计算解决方案7x24小时专业技术支持',
type: 'website',
images: [
{
url: `${baseSEO.baseUrl}/images/og-home-zh.jpg`,
width: 1200,
height: 630,
alt: 'AwsLinker - AWS云服务专家',
},
],
},
twitter: {
card: 'summary_large_image',
title: 'AwsLinker - 专业AWS云服务代理商',
description: 'AWS官方认证合作伙伴提供企业级云计算解决方案',
},
},
'zh-TW': {
title: 'AwsLinker - 專業AWS雲服務代理商 | 企業級雲計算解決方案提供商',
description:
'AwsLinker是AWS官方認證合作夥伴專注提供企業級雲計算解決方案。涵蓋雲服務器、雲存儲、雲數據庫、CDN加速等全棧雲服務。7x24小時專業技術支持助力企業數字化轉型升級。',
keywords: [
'AWS雲服務',
'雲計算解決方案',
'企業雲服務',
'雲服務器',
'雲存儲',
'雲數據庫',
'CDN加速',
'數字化轉型',
'AwsLinker',
'AWS代理商',
'EC2實例',
'S3存儲',
'RDS數據庫',
'負載均衡',
'雲安全',
'混合雲',
'私有雲',
'公有雲',
'雲遷移',
'雲運維',
],
openGraph: {
title: 'AwsLinker - 專業AWS雲服務代理商',
description: 'AWS官方認證合作夥伴提供企業級雲計算解決方案7x24小時專業技術支持',
type: 'website',
images: [
{
url: `${baseSEO.baseUrl}/images/og-home-tw.jpg`,
width: 1200,
height: 630,
alt: 'AwsLinker - AWS雲服務專家',
},
],
},
twitter: {
card: 'summary_large_image',
title: 'AwsLinker - 專業AWS雲服務代理商',
description: 'AWS官方認證合作夥伴提供企業級雲計算解決方案',
},
},
en: {
title: 'DongYun Technology - Professional AWS Cloud Service Provider | Enterprise Cloud Solutions',
description:
'DongYun Technology is an AWS certified partner specializing in enterprise cloud computing solutions. Comprehensive cloud services including servers, storage, databases, CDN acceleration. 24/7 professional technical support for digital transformation.',
keywords: [
'AWS cloud services',
'cloud computing solutions',
'enterprise cloud services',
'cloud servers',
'cloud storage',
'cloud databases',
'CDN acceleration',
'digital transformation',
'DongYun Technology',
'AWS partner',
'EC2 instances',
'S3 storage',
'RDS database',
'load balancing',
'cloud security',
'hybrid cloud',
'private cloud',
'public cloud',
'cloud migration',
'cloud operations',
],
openGraph: {
title: 'DongYun Technology - Professional AWS Cloud Service Provider',
description:
'AWS certified partner providing enterprise cloud computing solutions with 24/7 professional support',
type: 'website',
images: [
{
url: `${baseSEO.baseUrl}/images/og-home-en.jpg`,
width: 1200,
height: 630,
alt: 'DongYun Technology - AWS Cloud Expert',
},
],
},
twitter: {
card: 'summary_large_image',
title: 'DongYun Technology - Professional AWS Cloud Service Provider',
description: 'AWS certified partner providing enterprise cloud computing solutions',
},
},
};
// Products page SEO - Updated
export const productsSEO: MultiLanguageSEO = {
'zh-CN': {
title: '云产品与服务 - AWS全系列云产品 | AwsLinker企业级解决方案',
description:
'AwsLinker提供AWS全系列云产品服务轻量应用服务器、弹性计算EC2、对象存储S3、关系数据库RDS、内容分发CDN、负载均衡ELB等。专业架构师团队定制化企业云解决方案助力业务快速上云。',
keywords: [
'AWS云产品',
'轻量应用服务器',
'弹性计算EC2',
'对象存储S3',
'关系数据库RDS',
'内容分发CDN',
'负载均衡ELB',
'云安全产品',
'云监控',
'自动扩缩容',
'容器服务',
'Kubernetes',
'Lambda函数',
'API网关',
'消息队列',
'大数据分析',
'人工智能',
'机器学习',
'物联网IoT',
'区块链服务',
],
openGraph: {
title: '云产品与服务 - AWS全系列云产品',
description: '提供AWS全系列云产品服务专业架构师团队定制化企业云解决方案',
type: 'website',
},
},
'zh-TW': {
title: '雲產品與服務 - AWS全系列雲產品 | AwsLinker企業級解決方案',
description:
'AwsLinker提供AWS全系列雲產品服務輕量應用服務器、彈性計算EC2、對象存儲S3、關係數據庫RDS、內容分發CDN、負載均衡ELB等。專業架構師團隊定制化企業雲解決方案助力業務快速上雲。',
keywords: [
'AWS雲產品',
'輕量應用服務器',
'彈性計算EC2',
'對象存儲S3',
'關係數據庫RDS',
'內容分發CDN',
'負載均衡ELB',
'雲安全產品',
'雲監控',
'自動擴縮容',
'容器服務',
'Kubernetes',
'Lambda函數',
'API網關',
'消息隊列',
'大數據分析',
'人工智能',
'機器學習',
'物聯網IoT',
'區塊鏈服務',
],
openGraph: {
title: '雲產品與服務 - AWS全系列雲產品',
description: '提供AWS全系列雲產品服務專業架構師團隊定制化企業雲解決方案',
type: 'website',
},
},
en: {
title: 'Cloud Products & Services - Complete AWS Product Suite | DongYun Enterprise Solutions',
description:
'DongYun Technology offers complete AWS product suite: Lightsail servers, EC2 compute, S3 storage, RDS databases, CloudFront CDN, ELB load balancing. Professional architect team with customized enterprise cloud solutions for rapid cloud adoption.',
keywords: [
'AWS cloud products',
'Lightsail servers',
'EC2 compute',
'S3 storage',
'RDS databases',
'CloudFront CDN',
'ELB load balancing',
'cloud security products',
'cloud monitoring',
'auto scaling',
'container services',
'Kubernetes',
'Lambda functions',
'API Gateway',
'message queues',
'big data analytics',
'artificial intelligence',
'machine learning',
'IoT services',
'blockchain services',
],
openGraph: {
title: 'Cloud Products & Services - Complete AWS Product Suite',
description:
'Complete AWS product suite with professional architect team and customized enterprise solutions',
type: 'website',
},
},
};
// News page SEO - Updated
export const newsSEO: MultiLanguageSEO = {
'zh-CN': {
title: '新闻资讯中心 - 云计算行业动态与技术洞察 | AwsLinker',
description:
'AwsLinker新闻资讯中心提供最新云计算行业动态、AWS技术更新、产品发布、最佳实践案例分享。深度解析云原生、容器化、微服务、DevOps等前沿技术趋势助您把握云计算发展脉搏。',
keywords: [
'云计算新闻',
'AWS资讯',
'技术动态',
'行业趋势',
'产品发布',
'最佳实践',
'案例分享',
'云原生',
'容器化',
'微服务',
'DevOps',
'CI/CD',
'云安全',
'成本优化',
'性能调优',
'架构设计',
'技术博客',
'白皮书',
'技术峰会',
'在线研讨会',
],
openGraph: {
title: '新闻资讯中心 - 云计算行业动态与技术洞察',
description: '提供最新云计算行业动态、AWS技术更新、最佳实践案例分享',
type: 'website',
},
},
'zh-TW': {
title: '新聞資訊中心 - 雲計算行業動態與技術洞察 | AwsLinker',
description:
'AwsLinker新聞資訊中心提供最新雲計算行業動態、AWS技術更新、產品發布、最佳實踐案例分享。深度解析雲原生、容器化、微服務、DevOps等前沿技術趨勢助您把握雲計算發展脈搏。',
keywords: [
'雲計算新聞',
'AWS資訊',
'技術動態',
'行業趨勢',
'產品發布',
'最佳實踐',
'案例分享',
'雲原生',
'容器化',
'微服務',
'DevOps',
'CI/CD',
'雲安全',
'成本優化',
'性能調優',
'架構設計',
'技術博客',
'白皮書',
'技術峰會',
'在線研討會',
],
openGraph: {
title: '新聞資訊中心 - 雲計算行業動態與技術洞察',
description: '提供最新雲計算行業動態、AWS技術更新、最佳實踐案例分享',
type: 'website',
},
},
en: {
title: 'News & Insights Center - Cloud Computing Industry Updates & Technical Insights | DongYun Technology',
description:
'DongYun Technology news center providing latest cloud computing industry updates, AWS technical releases, product launches, and best practice case studies. In-depth analysis of cloud-native, containerization, microservices, DevOps trends.',
keywords: [
'cloud computing news',
'AWS updates',
'technical insights',
'industry trends',
'product launches',
'best practices',
'case studies',
'cloud native',
'containerization',
'microservices',
'DevOps',
'CI/CD',
'cloud security',
'cost optimization',
'performance tuning',
'architecture design',
'technical blog',
'whitepapers',
'tech summit',
'webinars',
],
openGraph: {
title: 'News & Insights Center - Cloud Computing Industry Updates',
description:
'Latest cloud computing industry updates, AWS technical releases, and best practice case studies',
type: 'website',
},
},
};
// Support page SEO - Updated
export const supportSEO: MultiLanguageSEO = {
'zh-CN': {
title: '客户支持服务 - 7x24小时专业技术支持 | AwsLinker服务保障',
description:
'AwsLinker提供7x24小时全天候专业技术支持服务。包含常见问题解答、技术文档库、在线工单系统、远程技术支持、架构咨询、故障排查、性能优化等全方位服务。AWS认证工程师团队快速响应专业可靠。',
keywords: [
'技术支持',
'客户服务',
'7x24小时支持',
'在线客服',
'工单系统',
'远程支持',
'故障排查',
'性能优化',
'架构咨询',
'运维服务',
'AWS认证工程师',
'技术文档',
'常见问题',
'最佳实践',
'培训服务',
'迁移支持',
'监控告警',
'备份恢复',
'安全加固',
'成本优化',
],
openGraph: {
title: '客户支持服务 - 7x24小时专业技术支持',
description: '提供7x24小时全天候专业技术支持AWS认证工程师团队快速响应',
type: 'website',
},
},
'zh-TW': {
title: '客戶支持服務 - 7x24小時專業技術支持 | AwsLinker服務保障',
description:
'AwsLinker提供7x24小時全天候專業技術支持服務。包含常見問題解答、技術文檔庫、在線工單系統、遠程技術支持、架構諮詢、故障排查、性能優化等全方位服務。AWS認證工程師團隊快速響應專業可靠。',
keywords: [
'技術支持',
'客戶服務',
'7x24小時支持',
'在線客服',
'工單系統',
'遠程支持',
'故障排查',
'性能優化',
'架構諮詢',
'運維服務',
'AWS認證工程師',
'技術文檔',
'常見問題',
'最佳實踐',
'培訓服務',
'遷移支持',
'監控告警',
'備份恢復',
'安全加固',
'成本優化',
],
openGraph: {
title: '客戶支持服務 - 7x24小時專業技術支持',
description: '提供7x24小時全天候專業技術支持AWS認證工程師團隊快速響應',
type: 'website',
},
},
en: {
title: 'Customer Support Services - 24/7 Professional Technical Support | DongYun Service Guarantee',
description:
'DongYun Technology provides 24/7 comprehensive professional technical support services. Including FAQ, technical documentation, online ticketing system, remote technical support, architecture consulting, troubleshooting, performance optimization. AWS certified engineers team with rapid response.',
keywords: [
'technical support',
'customer service',
'24/7 support',
'online chat',
'ticketing system',
'remote support',
'troubleshooting',
'performance optimization',
'architecture consulting',
'managed services',
'AWS certified engineers',
'technical documentation',
'FAQ',
'best practices',
'training services',
'migration support',
'monitoring alerts',
'backup recovery',
'security hardening',
'cost optimization',
],
openGraph: {
title: 'Customer Support Services - 24/7 Professional Technical Support',
description:
'24/7 comprehensive professional technical support with AWS certified engineers team',
type: 'website',
},
},
};
// About page SEO - Updated
export const aboutSEO: MultiLanguageSEO = {
'zh-CN': {
title: '关于AwsLinker - AWS官方认证合作伙伴 | 企业云计算服务专家',
description:
'AwsLinker成立于2020年是AWS官方认证的高级合作伙伴。拥有50+专业云计算工程师团队服务500+企业客户。专注企业级云计算解决方案提供云迁移、云原生改造、DevOps实施、云安全等专业服务。',
keywords: [
'AwsLinker',
'AWS合作伙伴',
'云计算专家',
'企业服务',
'公司介绍',
'团队介绍',
'资质认证',
'服务案例',
'企业文化',
'发展历程',
'技术团队',
'解决方案架构师',
'DevOps工程师',
'云安全专家',
'数据工程师',
'行业经验',
'客户案例',
'合作伙伴',
'企业愿景',
'核心价值观',
],
openGraph: {
title: '关于AwsLinker - AWS官方认证合作伙伴',
description: 'AWS官方认证高级合作伙伴50+专业团队服务500+企业客户',
type: 'website',
},
},
'zh-TW': {
title: '關於AwsLinker - AWS官方認證合作夥伴 | 企業雲計算服務專家',
description:
'AwsLinker成立於2020年是AWS官方認證的高級合作夥伴。擁有50+專業雲計算工程師團隊服務500+企業客戶。專注企業級雲計算解決方案提供雲遷移、雲原生改造、DevOps實施、雲安全等專業服務。',
keywords: [
'AwsLinker',
'AWS合作夥伴',
'雲計算專家',
'企業服務',
'公司介紹',
'團隊介紹',
'資質認證',
'服務案例',
'企業文化',
'發展歷程',
'技術團隊',
'解決方案架構師',
'DevOps工程師',
'雲安全專家',
'數據工程師',
'行業經驗',
'客戶案例',
'合作夥伴',
'企業願景',
'核心價值觀',
],
openGraph: {
title: '關於AwsLinker - AWS官方認證合作夥伴',
description: 'AWS官方認證高級合作夥伴50+專業團隊服務500+企業客戶',
type: 'website',
},
},
en: {
title: 'About DongYun Technology - AWS Official Certified Partner | Enterprise Cloud Computing Expert',
description:
'DongYun Technology, founded in 2020, is an AWS officially certified advanced partner. With 50+ professional cloud computing engineers serving 500+ enterprise customers. Specializing in enterprise cloud solutions, cloud migration, cloud-native transformation, DevOps implementation, cloud security.',
keywords: [
'DongYun Technology',
'AWS partner',
'cloud computing expert',
'enterprise services',
'company profile',
'team introduction',
'certifications',
'service cases',
'corporate culture',
'development history',
'technical team',
'solution architects',
'DevOps engineers',
'cloud security experts',
'data engineers',
'industry experience',
'customer cases',
'partnerships',
'corporate vision',
'core values',
],
openGraph: {
title: 'About DongYun Technology - AWS Official Certified Partner',
description:
'AWS officially certified advanced partner with 50+ professional team serving 500+ enterprise customers',
type: 'website',
},
},
};
// Contact page SEO - Updated
export const contactSEO: MultiLanguageSEO = {
'zh-CN': {
title: '联系我们 - 获取专业云服务咨询 | AwsLinker客户服务中心',
description:
'联系AwsLinker获取专业AWS云服务咨询。提供多种联系方式400客服热线、在线客服、邮件咨询、技术支持。专业解决方案架构师团队为您提供免费云架构评估、成本优化建议、迁移方案设计等个性化服务。',
keywords: [
'联系AwsLinker',
'云服务咨询',
'技术咨询',
'销售咨询',
'客服热线',
'在线客服',
'邮件咨询',
'技术支持',
'解决方案咨询',
'架构评估',
'成本优化',
'迁移咨询',
'免费咨询',
'专业顾问',
'客户服务',
'商务合作',
'合作伙伴',
'渠道合作',
'技术培训',
'售前咨询',
],
openGraph: {
title: '联系我们 - 获取专业云服务咨询',
description: '联系AwsLinker获取专业AWS云服务咨询免费云架构评估和成本优化建议',
type: 'website',
},
},
'zh-TW': {
title: '聯繫我們 - 獲取專業雲服務諮詢 | AwsLinker客戶服務中心',
description:
'聯繫AwsLinker獲取專業AWS雲服務諮詢。提供多種聯繫方式400客服熱線、在線客服、郵件諮詢、技術支持。專業解決方案架構師團隊為您提供免費雲架構評估、成本優化建議、遷移方案設計等個性化服務。',
keywords: [
'聯繫AwsLinker',
'雲服務諮詢',
'技術諮詢',
'銷售諮詢',
'客服熱線',
'在線客服',
'郵件諮詢',
'技術支持',
'解決方案諮詢',
'架構評估',
'成本優化',
'遷移諮詢',
'免費諮詢',
'專業顧問',
'客戶服務',
'商務合作',
'合作夥伴',
'渠道合作',
'技術培訓',
'售前諮詢',
],
openGraph: {
title: '聯繫我們 - 獲取專業雲服務諮詢',
description: '聯繫AwsLinker獲取專業AWS雲服務諮詢免費雲架構評估和成本優化建議',
type: 'website',
},
},
en: {
title: 'Contact Us - Get Professional Cloud Service Consultation | DongYun Customer Service Center',
description:
'Contact DongYun Technology for professional AWS cloud service consultation. Multiple contact methods: 400 hotline, online chat, email consultation, technical support. Professional solution architect team provides free cloud architecture assessment, cost optimization recommendations, migration planning.',
keywords: [
'contact DongYun Technology',
'cloud service consultation',
'technical consultation',
'sales inquiry',
'customer hotline',
'online chat',
'email consultation',
'technical support',
'solution consultation',
'architecture assessment',
'cost optimization',
'migration consultation',
'free consultation',
'professional consultant',
'customer service',
'business cooperation',
'partnerships',
'channel cooperation',
'technical training',
'pre-sales consultation',
],
openGraph: {
title: 'Contact Us - Get Professional Cloud Service Consultation',
description:
'Contact DongYun Technology for professional AWS cloud service consultation with free architecture assessment',
type: 'website',
},
},
};
// Function to generate article SEO
export function generateArticleSEO(article: any, language: string): SEOConfig {
const siteName = baseSEO.siteName[language as keyof typeof baseSEO.siteName];
// Enhanced article SEO with better keywords
const baseKeywords = {
'zh-CN': ['AWS', '云计算', '技术分享', '行业动态', siteName, '云服务', '数字化转型'],
'zh-TW': ['AWS', '雲計算', '技術分享', '行業動態', siteName, '雲服務', '數字化轉型'],
en: [
'AWS',
'cloud computing',
'technical sharing',
'industry insights',
siteName,
'cloud services',
'digital transformation',
],
};
const keywords = article.tags
? [...baseKeywords[language as keyof typeof baseKeywords], ...article.tags]
: baseKeywords[language as keyof typeof baseKeywords];
return {
title: `${article.title} | ${siteName}`,
description:
article.excerpt ||
article.content
.substring(0, 155)
.replace(/[#*\n]/g, ' ')
.trim() + '...',
keywords: keywords,
openGraph: {
title: article.title,
description:
article.excerpt ||
article.content
.substring(0, 155)
.replace(/[#*\n]/g, ' ')
.trim(),
type: 'article',
images: [
{
url: `${baseSEO.baseUrl}/images/og-article-${article.id}.jpg`,
width: 1200,
height: 630,
alt: article.title,
},
],
},
twitter: {
card: 'summary_large_image',
title: article.title,
description:
article.excerpt ||
article.content
.substring(0, 155)
.replace(/[#*\n]/g, ' ')
.trim(),
},
};
}
// Helper function to get SEO config by page and language
export function getSEOConfig(page: string, language: string = 'zh-CN'): SEOConfig {
const seoConfigs: Record<string, MultiLanguageSEO> = {
home: homeSEO,
products: productsSEO,
news: newsSEO,
support: supportSEO,
about: aboutSEO,
contact: contactSEO,
};
const config = seoConfigs[page];
if (!config) {
// Fallback to home SEO if page not found
return homeSEO[language as keyof MultiLanguageSEO] || homeSEO['zh-CN'];
}
return config[language as keyof MultiLanguageSEO] || config['zh-CN'];
}
// Additional SEO utilities
export const seoUtils = {
// Generate structured data for organization
getOrganizationSchema: () => ({
'@context': 'https://schema.org',
'@type': 'Organization',
name: 'AwsLinker',
alternateName: ['DongYun Technology', 'AwsLinker'],
url: baseSEO.baseUrl,
logo: `${baseSEO.baseUrl}/images/logo.png`,
description: '专业的AWS云服务代理商提供企业级云计算解决方案',
foundingDate: '2020',
contactPoint: {
'@type': 'ContactPoint',
telephone: '400-123-4567',
contactType: 'customer service',
availableLanguage: ['Chinese', 'English'],
},
sameAs: [
'https://www.linkedin.com/company/dongyun-technology',
'https://twitter.com/dongyun_tech',
],
}),
// Generate breadcrumb schema
getBreadcrumbSchema: (items: Array<{ name: string; url: string }>) => ({
'@context': 'https://schema.org',
'@type': 'BreadcrumbList',
itemListElement: items.map((item, index) => ({
'@type': 'ListItem',
position: index + 1,
name: item.name,
item: `${baseSEO.baseUrl}${item.url}`,
})),
}),
};