SShortSingh.
Back to feed

Astro Site Serving 8 Languages on Vercel Cuts Build Time to Under 4 Minutes

0
·3 views

A developer team behind the transfer booking site navetteforyou.com shared lessons from deploying a multilingual Astro site with over 5,000 static routes to Vercel. Each page exists in eight languages, with translated URL slugs and hreflang tags linking every variant to its alternates, all generated from a single route map that also drives the sitemap. Arabic routes use right-to-left layout through dir="rtl", CSS logical properties, and mirrored navigation and forms. Build optimizations including parallel content processing, one-time image optimization with Sharp, and Vercel incremental static regeneration reduced build time from 12 minutes to under 4 minutes. The article notes that individual pages can be updated without rebuilding the entire site.

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
ProgrammingDEV Community ·

How Office Software Evolved from Desktop Tools to AI-Powered Workspaces

Office productivity software has progressed from early spreadsheets and desktop suites to cloud collaboration and now AI-assisted workflows. The article traces this path by pointing to the first spreadsheet, VisiCalc, introduced in 1979, which made personal computers practical for business. Integrated suites later combined documents, spreadsheets, and presentations, while browser-based cloud services enabled shared and simultaneous editing. The piece notes that in November 2026 Anthropic expanded Claude with spreadsheet, whiteboard, data analysis, and meeting features, and that Microsoft, Google, OpenAI, and Zoho are pursuing similar approaches. The author argues the key question is how each generation solved different problems for users and vendors.

0
ProgrammingDEV Community ·

eBPF Ring Buffers in Go Services Can Silently Drop Kernel Events Under Load

A DEV Community article examines how eBPF observability tools running inside production Go services can lose data. When the kernel-to-user ring buffer fills, events are dropped silently, leaving dashboards looking healthy while entire request classes go unseen. The piece compares the older per-CPU perf event arrays with the newer shared ring buffer introduced in kernel 5.8, noting that each has distinct loss and contention behaviors. It shows that a slow synchronous consumer loop delays reads while the kernel keeps writing, which accelerates overflow. The article also proposes an adaptive sampling strategy for Go consumers as a way to manage this tradeoff.

0
ProgrammingDEV Community ·

How to Use Git Stash: A Step-by-Step Guide

Git stash is a temporary holding area that saves uncommitted changes so developers can switch branches or handle urgent work without losing progress. The guide explains that running git stash push saves modified files and restores the working folder to its last commit, and that adding a descriptive message with -m helps identify each entry. Users can check saved entries with git stash list, where the newest appears as stash@{0}. The article demonstrates switching to another branch for a fix, then using git stash pop to restore the work and remove it from the stash list. It also notes that git stash apply restores changes while keeping the stash entry, which is useful for testing or keeping a backup copy.

0
ProgrammingDEV Community ·

Harbor seawall rebuild at Corbin's Landing follows a fixed five-step design pipeline

A failing granite seawall at Corbin's Landing is being rebuilt using five design platforms run in a set order to reduce errors from handoffs between teams. The project combined state elevation data, a 2022 orthophoto, parcel lines, and the mean high water line into one georeferenced map, with a survey adding 612 points along the wall and piers. Generated 3D models helped residents identify their homes at a February meeting and supported flood tests at 10.5-foot spring tide and 12.5-foot design storm levels. The design package includes 41 construction sheets, and referencing uncovered a 12-inch water main deeper than the utility map showed, prompting four piles to be moved and a sleeve added. Bids close in January, with construction planned after mud season.