SShortSingh.
Back to feed

Duplicate URLs on an 11-page Astro site traced to www and trailing-slash conflicts on Vercel

0
·8 views

A small static browser game site built with Astro and hosted on Vercel saw its main keyword drop out of Google's top 10 in late November. Search Console showed split signals, with impressions divided between the apex and www domains and several pages flagged as redirects or not indexed. The author found that the sitemap, generated from a www site URL, listed addresses that Vercel redirected to the non-www domain. Canonical tags and structured data also disagreed about which host and trailing-slash format to use. Further investigation showed that Vercel served identical content at both slashed and non-slashed paths, requiring a routing configuration change.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingHacker News ·

Mamdani says drivers can't park wherever they like just to grab a slice

New York City mayor Zohran Mamdani said drivers cannot simply park wherever they choose in order to pick up pizza. The remark was highlighted in a Streetsblog NYC roundup of headlines that included the message that double parking to get pizza is not allowed. The comments were framed around enforcing curb and parking rules in the city. The story was shared on Hacker News, where it drew 30 points and 10 comments. The source material provided is limited, so further context on the specific policy or incident is not available.

0
ProgrammingDEV Community ·

MAPE ranks two forecasts opposite to RMSE and breaks on zero demand

Mean absolute percentage error expresses forecast misses as percentages, which makes it easy for non-technical managers to read. On a five-day demand example, MAPE favors a forecast that RMSE judges to be more than twice as poor, because percentage errors weigh each miss against that day's actual demand. The metric is undefined when demand is zero and explodes when demand is near zero, and it penalizes over- and under-forecasts asymmetrically. The article suggests alternatives such as weighted MAPE, sMAPE, and MASE, and recommends reporting several metrics side by side on your own data.

0
ProgrammingDEV Community ·

Обзор AI-переводчиков манги и манхвы на русский в 2026: OCR, инпейнтинг и расширения

Стандартные OCR-решения хуже справляются с переводом японской манги и корейской манхвы на русский, чем с англоязычным материалом. Проблемы связаны с вертикальным письмом, фуриганой, длинными полосами вебтунов и тем, что русские реплики заметно длиннее оригинала. Выбор инструмента сводится к трём слоям: захват страниц из DOM или canvas, алгоритм удаления исходного текста и контроль кириллической верстки. Статья разбирает особенности расширений для Chromium MV3 и Firefox WebExtensions, а также сравнивает маскирование глифов с закраской белыми плашками. Приведён пример алгоритма подбора кегля для кириллического текста внутри узкого овального бабла.

0
ProgrammingDEV Community ·

AEGIS-MCP: A Zero-Trust Local Proxy Aimed at Blocking MCP Lethal Trifecta Attacks

AI coding agents using the Model Context Protocol can now read local files, ingest untrusted external content, and call outbound network tools, creating supply-chain risks. The article cites over 1,000 MCP-specific vulnerabilities and a large share of audited agent skills containing security flaws, including packages built to steal credentials. The MCP maintainers recently named the resulting risk pattern the Lethal Trifecta, noting that tool annotations alone cannot be trusted. The author presents AEGIS-MCP, an open-source (MIT) governance proxy that enforces security at the local host runtime, using taint tracking that blocks outbound actions until a human approves them. The project also includes cryptographically signed audit records and a browser-based verifier that runs without network access.