Django, Next.js

PyQt -> Django + Next.js

The customer’s computer environment is quite complex, with machines running Windows 7, Windows 10, and Windows 11. Although the PyQt application we developed works on about 90% of these systems, …

Generate Sitemap.xml for Next.js 14

🔹 Next.js 14 官方建議的方式 你可以在 src/app/sitemap.ts中,手動定義你的 sitemap 內容。 📌 1️⃣ 建立 sitemap.ts 在 src/app/sitemap.ts新增: ts複製編輯import { MetadataRoute } from ‘next’ export default function sitemap(): MetadataRoute.Sitemap { const baseUrl = ‘https://www.winerva.com’ …

GraphQL on Next.js

GraphQL has the built-in scale types Int, Float, String, Boolean, and ID. Exclamation marks (!) denote non-nullable fields, and lists within square brackets([ ]) indicate arrays. use browser http://localhost: 3000/api/graph …

Next.js Rendering: SSR, SSG, ISR, CSR

Server-Side Rendering: SSR 何時執行? 每次請求時,在伺服器端執行 getServerSideProps 來產生 HTML。優點: 缺點: Static Site Generation: SSG 何時執行? 在 build 時執行 getStaticProps,預先生成 HTML,並在 CDN 上提供。優點: 缺點: Incremental Static Regeneration: ISR 何時執行? 在 build 時先生成靜態頁面,但允許根據 …