next auth roles template
1.0.0

使用此 Next.js 模板全速開始!
安裝·技術堆疊 + 功能·作者
使用以下命令在本地克隆並建立此存儲庫:
npx create-next-app my-saas-project --example " https://github.com/mickasmt/next-auth-roles-template "或者,使用 Vercel 進行部署:
pnpm install.env.example複製到.env.local並更新變數。 cp .env.example .env.localpnpm run dev您可以在終端機中使用指令pnpm run remove-content來刪除專案的特定部分。此命令支援以下參數:
pnpm run remove-content而不指定參數( --blog或--docs )。這可確保正確刪除所有關聯文檔,因為如果您在“文檔”之後刪除“部落格”,則某些文檔可能不會被刪除/更新,反之亦然。 pnpm run remove-contentpnpm run remove-content --blogpnpm run remove-content --docs筆記
我使用 npm-check-updates 套件來更新這個項目。
使用此命令更新您的專案: ncu -i --format group

next/font – 最佳化自訂字體並刪除外部網路請求以提高效能ImageResponse – 在邊緣產生動態開放圖影像useIntersectionObserver – React hook 來觀察元素何時進入或離開視窗useLocalStorage – 將資料保留在瀏覽器的本機儲存中useScroll – React hook 來觀察滾動位置(範例)nFormatter – 格式化帶有1.2k或1.2M等後綴的數字capitalize – 將字串的第一個字母大寫truncate – 將字串截斷為指定長度use-debounce – 對函數呼叫/狀態更新進行反跳該專案基於 Next SaaS Stripe Starter。
由 @miickasmt 於 2023 年創建,在 MIT 許可下發布。
感謝 Hosna Qasmei 提供部分儀表板側邊欄代碼。