Skip to content
#

Vercel

vercel logo

Vercel is the optimal workflow for frontend teams.

All-in-one: Static and Jamstack deployment, Serverless Functions, and Global CDN.

Here are 2,988 public repositories matching this topic...

next.js
ScriptedAlchemy
ScriptedAlchemy commented Aug 19, 2021

What version of Next.js are you using?

11.1.0

What version of Node.js are you using?

14

What browser are you using?

chrome

What operating system are you using?

macOS

How are you deploying your application?

Other (serverless aws)

Describe the Bug

When importing images into _document next does not emit these image assets into the client build.

For example, I

swr
Daiz
Daiz commented Nov 27, 2019

The documentation for mutate talks about local mutation for faster feedback, but the documented way to use it only mutates after a promise has resolved - in other words, not immediately.

As a result, I've found myself writing code in this kind of pattern:

mutate(path, { ...data, patch }, false); // mutate immediately, don't revalidate
await patchData(patch); // await the 

A starter project for next js with authentication - Contains React 17 + Typescript + Tailwind CSS 2 + React Query 3 + GitHub Auth + LinkedIn Auth + Password-less Auth + Fauna DB + ESLint + Prettier + Husky

  • Updated May 21, 2021
  • JavaScript
Organization
vercel
Website
vercel.com