Skip to content

Instantly share code, notes, and snippets.

@cdnkr
cdnkr / pwa-setup-next15.md
Last active June 5, 2025 18:15
Setting up a PWA with install button in Next.js 15

Step 1: Create the manifest.json File

The manifest.json file provides metadata for your PWA, like its name, icons, and theme color.

  1. In the root of your public/ folder, create a manifest.json file:

    // public/manifest.json
    {
      "name": "Your App Name",
@cdnkr
cdnkr / dev-ssl-next15.md
Created November 14, 2024 21:27
Setting Up a Development SSL Certificate for Local testing in Next.js (15)

Setting Up a Development SSL Certificate for Local testing

To enable features that require HTTPS, such as device orientation, you can set up a local SSL certificate using mkcert and then access your development site securely on both your PC and mobile device.

Step 1: Install mkcert

First, install mkcert, which simplifies creating local SSL certificates trusted by your system.

  • Using Chocolatey (Recommended)