Menu

Post image 1
Post image 2
1 / 2
0

10 Next.js tips you might not know

Vercel News·Lee Robinson·4 days ago
#WlQZ5ae7
#vercel#next#build#path#headingtip#article
Reading 0:00
15s threshold

Techniques from the Next.js experts that empower your application. Here are 10 little known Next.js tips you might not have heard that could help you save time on your next project: Next.js Redirects Next.js Rewrites Next.js Preview Mode Hooking Into the Build Process Next.js With Preact Absolute Imports and Module Path Aliases CRUD API Routes Setting Response HTTP Caching Headers Shared Component Attributes Next.js Mobile Applications? Vercel's Lee Robinson gives a quick overview on 10 little known tips on Next.js Link to heading Tip 1: Next.js Redirects Next.js Redirects are new to version 9.5 (released in July 2020) and give the ability to reroute an incoming request path to another destination.  Path matching, regex path matching, and wildcard paths are all valid ways to reroute your source path. Use the redirects key to create an asynchronous function that will return an array of objects where each object contains the properties for a redirect in the application.  module .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More