electron / electron/forge

Feature Request: Add Next.js Support to Electron Forge

Open
#3,889 2 comments 5 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
7.1k
Forks
641
Avg merge
3d 1h
Merged PRs (30d)
30

Description

### Pre-flight checklist

- [x] I have read the [contribution documentation](https://github.com/electron/forge/blob/main/CONTRIBUTING.md) for this project.
- [x] I agree to follow the [code of conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project uses.
- [x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

### Problem description

Currently, Electron Forge provides templates for **React, TypeScript, and Vite**, but **Next.js is not officially supported**.**Next.js can be used as the frontend for Electron apps** due to its **routing, API routes, and static generation capabilities**. However, setting up Next.js with Electron Forge requires **manual configurations and workarounds**.

This proposal suggests adding an **official Next.js template (`@electron-forge/template-nextjs`)** to simplify integration.

### Proposed solution

Add a new Forge template:
**`@electron-forge/template-nextjs`**

### Alternatives considered

Manually configuring Next.js in Electron

### Additional information

## **Would You Accept a PR?**
If the maintainers support this, I’d be happy to help contribute an implementation. Let me know if there are any **technical constraints or preferences** for adding this!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.