Skip to content

Feature Request: Add Next.js Support to Electron Forge #3889

@vatsal-afk

Description

@vatsal-afk

Pre-flight checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project uses.
  • 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions