慣性聚合 高效追讀感興趣之博客、新聞、科技資訊
閱原文 以慣性聚合開啟

推薦訂閱源

博客园 - 司徒正美
V
V2EX
T
Tailwind CSS Blog
有赞技术团队
有赞技术团队
aimingoo的专栏
aimingoo的专栏
Apple Machine Learning Research
Apple Machine Learning Research
IT之家
IT之家
Blog — PlanetScale
Blog — PlanetScale
A
About on SuperTechFans
月光博客
月光博客
T
The Blog of Author Tim Ferriss
宝玉的分享
宝玉的分享
Martin Fowler
Martin Fowler
博客园 - 聂微东
The GitHub Blog
The GitHub Blog
V
Visual Studio Blog
WordPress大学
WordPress大学
酷 壳 – CoolShell
酷 壳 – CoolShell
Engineering at Meta
Engineering at Meta
GbyAI
GbyAI

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python)
汝之Vercel重定向逆矣,而Google忽汝之站。
Ted · 2026-05-24 · via DEV Community

Ted

始创此博客,越一周,唯首页一页被索引。诸篇皆示"URL未为Google所知"。无爬取尝试,无印象,全无信号。

然此站于Core Web Vitals皆得百分。首日即提交Sitemap于GSC。内容皆实。无显见之技术故障。

其本因:Vercel设www.tedagentic.com为主域,且正行重定向。tedagentic.com 之。吾之 GSC 属性乃 tedagentic.com。此单一配置之失,竟使索引之链默然断裂。


失配之状若何

Vercel 之设,允汝附多域于项目。其一为主——主供其内容。其余皆转向之。添 www 与非 www 之时,其默认常使 www 为主。

吾之例:

tedagentic.com       → 307 redirect → www.tedagentic.com
www.tedagentic.com   → 200 (primary, serves content)

入全景模式 出全屏模式

浏览器何顾,尔键之。tedagentic.com,降于地www.tedagentic.com,览之。诸事无碍。

谷歌有心。


何以此损索引

问题叠于三层,益甚。

1. GSC属性不匹配

吾之Google Search Console财产tedagentic.com(非www)。此站实自(non-www)供之。www.tedagentic.comGSC 跟踪每处房产的覆盖情况。谷歌找到的页面www.未入我所察之非www之产,未得其功。

二、站点地图链接有误

网站地图乃动态生成者。site.url于代码之中。其值已设。https://tedagentic.com然因该站重定向至此,阿斯特(Astro)时或将构建时基础URL解析为www版本。实时站点地图即服务此:

<loc>https://www.tedagentic.com/posts/how-to-set-up-local-ai-agent/</loc>

入全景模式 出全屏模式

谷歌下载了站点地图自tedagentic.com/sitemap.xml睹URL指向www.tedagentic.com,每遇歧义之讯,纷纭莫决:目录云www,规范云非www,谷歌家产亦云非www,而域无信史以辨其疑。四十七件已呈,零件被录。

3. 规范标记与目录相悖

HTML中之规范标记无误——皆指tedagentic.com。然目录则指他处。www.tedagentic.com谷歌有二信号相悖,而无明权以决之。于新域无信立,似止不行。


诊断

新站初建,必行三查,方信其缓:

察重定向链

curl -sI https://yourdomain.com | grep -E "HTTP|location"
curl -sI https://www.yourdomain.com | grep -E "HTTP|location"

入全景模式 出全屏模式

汝欲之乎yourdomain.com返200而www.yourdomain.com至308重定向至yourdomain.com或反之,恒如是,惟与尔之GSC属性相合耳。

核验站点地图URL是否与规范域名相符

curl -s https://yourdomain.com/sitemap.xml | grep "<loc>" | head -5

入全景模式 出全屏模式

sitemap中每URL皆应与GSC property同域,无一例外。

检视汝之GSC产业:

往GSC处核验汝是否已添加tedagentic.comwww.tedagentic.com既为产权。乃核验汝网站地图URL与规范标签,须用其确版本。三者必合。


其补

第一步 — 依 API 更易 Vercel 之重定向

TOKEN="your-vercel-token"
TEAM="your-team-id"
PROJECT="your-project-id"

# Remove both domains
curl -X DELETE "https://api.vercel.com/v9/projects/${PROJECT}/domains/yourdomain.com?teamId=${TEAM}" \
  -H "Authorization: Bearer $TOKEN"

curl -X DELETE "https://api.vercel.com/v9/projects/${PROJECT}/domains/www.yourdomain.com?teamId=${TEAM}" \
  -H "Authorization: Bearer $TOKEN"

# Re-add with correct direction
curl -X POST "https://api.vercel.com/v10/projects/${PROJECT}/domains?teamId=${TEAM}" \
  -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"name":"yourdomain.com"}'

curl -X POST "https://api.vercel.com/v10/projects/${PROJECT}/domains?teamId=${TEAM}" \
  -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"name":"www.yourdomain.com","redirect":"yourdomain.com","redirectStatusCode":308}'

入全景模式 出全屏模式

第二步 — 修正站点URL于代码中并重新部署:

务使site.url(或等价者)完全吻合,既定,而后推之。Vercel将重筑站点地图,以正其URL。

第三步 — 再提站点地图并请索引:

service.sitemaps().submit(
    siteUrl='sc-domain:yourdomain.com',
    feedpath='https://yourdomain.com/sitemap.xml'
).execute()

入全屏模式 出全屏模式

次则用 URL 检视 API 或 GSC 手动请求索引于尔之要文。


所费几何

约六日之早爬与索引之机于新域。其站始终康健——GSC 无误,无警,无爬失。其不协乃隐,直至吾行重定向之检,较之 GSC 之产。

新域之中,初探之讯,重于旧域。谷歌决其信之深浅。彼时之典要不一,较之半年之后,更难挽回。

既辨其症,十刻可愈。然诊之需周,盖无显谬可逐。


新设于Vercel之站,速检之要如下。

  • 确认 Vercel 中主域为何者(设置→域名)
  • 确认 GSC 属性与该域完全相符(www 与非 www)
  • 确认站点地图 <loc> 之 URL 皆用同域
  • 确认 HTML 中规范标签皆用同域
  • curl -sI 验证重定向方向是否正确
  • [ ] 以308(永恆)而非307(暫時)為www重定向