SShortSingh.
Back to feed

Generating Sitemaps, Canonicals and OG Images Dynamically in Nuxt

0
·1 views

The author argues that many SEO issues on Nuxt projects come from infrastructure rather than content, such as build-time sitemaps that go stale, canonical tags that multiply across query-string variants, and OG image URLs that return HTML 404 pages. The recommended approach is to produce all three from the backend's database at request time, with caching. The guide describes serving sitemap.xml from a Nitro server route tied to an API, setting a single normalised canonical per page with useHead, and serving OG images from a cached endpoint that returns image/png. The author supports this with curl output from GitHub and Nuxt's own documentation site, noting that correct status codes, content types and explicit cache policies are the key signals to copy. A comparison table weighs static files, build-time generation, Nuxt SEO modules and custom Nitro routes by freshness, scalability and operational effort.

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 ·

H-1B holders may enter up to 10 days early but cannot begin work before the petition start date

Under U.S. immigration regulations, H-1B workers and their H-4 dependents can be admitted up to 10 days before their approved petition start date. The same window extends up to 10 days after the end date, and USCIS can grant the status inside the country on similar terms. Employment, however, is permitted only during the petition's validity period unless another work authorization applies. The rule, found at 8 CFR 214.1(l)(1), was set by DHS in a 2016 final rule that took effect in January 2017. The extra days are meant to allow time to enter, prepare for employment, or depart and pursue other lawful status options.

0
ProgrammingDEV Community ·

Author stress-tests a containerized task system and explains why hard isolation was left unbuilt

The final post in a series on agent execution infrastructure assembles earlier fixes and runs a load test of 20 concurrent one-minute tasks against a small container pool. The test confirmed that no tasks were lost, surplus work queued, users received queue positions instead of errors, and progress stayed queryable. The author stresses that this load level is too small to reveal real failure modes, and that failure-injection experiments need a multi-node cluster the local laptop setup cannot provide. He also admits that tasks held by a dead container are not automatically re-dispatched, which would require a task-state table and timeout rules. The post closes by noting that stronger isolation, such as the shared kernel's role in container boundaries, was designed on paper but not implemented.

0
ProgrammingDEV Community ·

Experts urge AI agent risk registers covering seven areas beyond prompt injection

A DEV Community article argues that treating prompt injection as the sole AI security concern leaves most risks unaddressed, since roughly 60 risks span data, models, software security, agent actions, human operations, governance, and societal harm. It notes that falling costs of AI-assisted vulnerability discovery, illustrated by recent PHP flaws found with reasoning models, weaken the defense that attackers won't bother. The author uses a hypothetical consultant who granted a summarization assistant deletion and sharing rights it did not need, showing how excessive permissions enlarge the damage an injected instruction can cause. The piece draws on OWASP, NIST, the EU AI Act, and MIT's AI Risk Repository to offer a seven-group map as a checklist for building a risk register. It stresses limiting agent permissions to what each task requires, since the blast radius of an attack depends on granted authority rather than the prompt alone.

0
ProgrammingDEV Community ·

GitHub Actions continue-on-error on a matrix can hide failures across every leg

A job-level continue-on-error key in a GitHub Actions matrix applies to every combination the matrix generates, not just the one intended. As a result, a single failing leg can be tolerated for all legs, and the overall run still reports success. Such failures often go unnoticed because required checks pass and merges proceed without alerts. The article suggests scoping the key to specific legs using a matrix flag and an expression, and separating fail-fast behavior from continue-on-error. It also recommends checking individual job conclusions in recent runs to spot legs that have been quietly failing.

Generating Sitemaps, Canonicals and OG Images Dynamically in Nuxt · ShortSingh