Should I add PWA support in starter template of next js (that is by default) #81313
hamidrazadev
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Non-Goals
Background
Feature Request: Default PWA Support in Next.js Starter Template
Summary
Many beginner developers who start working with Next.js find it challenging to implement Progressive Web App (PWA) functionality in their projects. Despite the growing need for PWAs in modern web development, setting up PWA support in Next.js still requires additional libraries, complex configuration, and external learning.
I believe this is a common issue faced by the community, and given the current trends, almost every web application today aims to provide PWA capabilities for a more native-like experience.
There is currently no built-in or alternative out-of-the-box solution in Next.js for PWA support. It would greatly benefit developers if PWA support was included by default in the official Next.js starter template.
Motivation
Proposed Solution
create-next-app
starter template.manifest.json
and service worker configuration.create-next-app
CLI flags (e.g.--pwa
).Alternatives Considered
Currently, developers rely on community packages like
next-pwa
which, while helpful, still require manual setup and troubleshooting. This gap in native support often creates barriers, especially for new developers.Additional Context
Making PWA a first-class citizen in Next.js will not only enhance the developer experience but will also encourage best practices across the ecosystem.
Thank you for considering this feature!
Proposal
Proposal
I propose that the official Next.js starter template (
create-next-app
) should include optional, built-in PWA support that can be easily enabled with a CLI flag like:Beta Was this translation helpful? Give feedback.
All reactions