收藏 / 列表

繼小鵬 - 二、nextjs API路由如何做好JWT登錄鑑權、身份鑑權,joi字段校驗,全局處理異常等(c-shopping電商開源)

介紹 在這篇文章中,我們將學習如何在C-Shopping電商開源項目中,基於Next.js 14,處理所有API路由中添加身份驗證和錯誤處理中間件的思路與實現。 這篇文章中的代碼片段取自我最近開源項目C-Shopping,完整的項目和文檔可在https://github.com/huanghanzhilian/c-shopping地址查看。 Next.js中的API路由 在Next.js14中,/

identity , joi , next.js , 開源 , Jwt

歐雷 - 對前端同行的最後一次勸誡

不知為啥,我有那種有點無法自控的愛管閒事兒的臭毛病,因而在有的微信羣中把自己羣暱稱改成了「熱心網友」。 最近有些同行在找工作,刷八股文,問某種面試題該怎麼回答,諸如此類。 看到他們那樣,我心裏就急得上躥下跳的——明明前方是火坑,咋還接二連三看似心甘情願地往裏跳呢??? 在當下這個時間點,我的同行絕大部分是以 HTML、CSS、JavaScript 等為核心的「Web 前端」,他們之中絕大部分是業務

職業發展 , 低代碼 , 前端工程師 , aigc , 人工智能

Caleb Olojo - Dynamic Data-Fetching In An Authenticated Next.js App

Next.js has five types of data-fetching patterns for determining how you want content to be seen in your application: static-site generation (SSG), server-side rendering (SSR), client-side rendering

Apps , next.js , Javascript

Sam Poder - Using SWR React Hooks With Next.js’ Incremental Static Regeneration (ISR)

If you’ve ever used Incremental Static Regeneration (ISR) with Next.js, you may have found yourself sending stale data to the client. This occurs when you are revalidating the page on the server. Fo

react , API , Tools , next.js , Javascript

Juan Diego Rodríguez - Demystifying The New Gatsby Framework

After the release of Gatsby 4, the Gatsby team saw the biggest rise in signups on Gatsby Cloud. According to Gatsby co-founder Kyle Mathews: “Gatsby 4 is the most powerful version of Gatsby yet.

Frameworks , Gatsby , API , next.js , serverless

Atila Fassina - Understanding App Directory Architecture In Next.js

Since Next.js 13 release, there’s been some debate about how stable the shiny new features packed in the announcement are. On “What’s New in Next.js 13?” we have covered the release announced and es

react , Guides , Apps , next.js