If you're using a headless CMS for storing content, you also work with URL slugs, the last parts of any URL. The problem is, content editors are able to freely change the slugs which can cause 404 errors, lost page ranks, broken links, and in the end confused visitors on your site. In this talk, I will present a solution for keeping a history of URL slugs in the CMS and explain how to implement a proper redirect mechanism (using TypeScript!) for dynamically generated pages on a Next.js website.
Add to the talk notes: https://github.com/ondrabus/kontent-boilerplate-next-js-ts-congress-2022
Check out more articles and videos
We constantly think of articles and videos that might spark Git people interest / skill us up or help building a stellar career

21 min
TypeScript and React: Secrets of a Happy Marriage

6 min
Full-stack & typesafe React (+Native) apps with tRPC.io

21 min
Killing BFFs with GraphQL and Next.js

31 min
Next.js — The Hybrid Architecture (SSG/SSR) for Web Developer Modernization and Scaling React

28 min
You don't want to Server-side Render your Next.js App

27 min
TypeScript and the Database: Who Owns the Types?
Workshops on related topic

174 min
React, TypeScript, and TDD
Free Workshop

148 min
Best Practices and Advanced TypeScript Tips for React Developers
Workshop

173 min
Build a Headless WordPress App with Next.js and WPGraphQL
Free Workshop

116 min
Advanced TypeScript types for fun and reliability
Workshop

162 min
Full Stack GraphQL In The Cloud With Neo4j Aura, Next.js, & Vercel
Free Workshop

245 min
Building Serverless Applications on AWS with TypeScript
Workshop
Upcoming events