/plushcap/analysis/inngest/inngest-migrating-from-vite-to-nextjs

Migrating from Vite to Next.js

What's this blog post about?

This article guides developers through migrating an existing Vite app to Next.js. The reasons for switching include slow initial page loading time, no automatic code splitting, network waterfalls, fast and intentional loading states, choosing the data fetching strategy, middleware support, Server Component support, and built-in optimizations. The migration steps involve installing Next.js dependency, creating a Next.js config file, updating TypeScript configuration, creating the Root Layout, creating the Entrypoint Page, updating static image imports, migrating environment variables, updating scripts in package.json, cleaning up Vite related artifacts, and optimizing further with Next.js features like pre-rendering (SSR), React Router to Next.js App Router migration, ESLint configuration update, image optimization, font optimization, and third-party script optimization.

Company
Inngest

Date published
July 20, 2023

Author(s)
Igor Gassmann

Word count
2102

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.