FAQ - Frequently Asked Questions

What is Next.js?
+

Next.js is a React framework that allows for server-side rendering, static site generation, and many other features.

How do I deploy a Next.js app?
+

You can deploy a Next.js app to platforms like Vercel, Netlify, or any Node.js-supported hosting service.

What is the difference between static and dynamic routes?
+

Static routes are pre-generated at build time, while dynamic routes are generated on demand based on the URL or parameters.

Does Next.js support TypeScript?
+

Yes, Next.js has built-in TypeScript support. You just need to create a `tsconfig.json` file, and it will automatically detect TypeScript.

How does Next.js handle API routes?
+

Next.js provides API routes inside the `/pages/api/` directory, allowing you to create backend functionality within your application.

What are the advantages of server-side rendering (SSR)?
+

SSR helps improve SEO, allows dynamic content rendering, and reduces the time to first meaningful paint.