/nuxt-https-local

Setting Nuxt 3 HTTPS & Hot Reload in local with docker compose

Primary LanguageTypeScript

Nuxt 3 Minimal Starter

Look at the Nuxt 3 documentation to learn more.

Setup

Make sure to install the dependencies:

# npm
npm install

# pnpm
pnpm install

# yarn
yarn install

Add Your Domain

add your local domain to /etc/hosts or you can run this to auto add /etc/hosts dont forget to change irsyaad.budi.dev in package.json

yarn add:domain

Run this command only once

Development Server

run docker-compose

yarn docker:ssl:up

make sure the /certs folder is created in /config/https-local

then open new terminal run your nuxt app with this command

yarn dev:ssl

so you can access your local domain with hot reload ✨ in my case is https://irsyaad.budi.dev

IMPORTAN NOTES

Dont forget change all domain irsyaad.budi.dev with your own local domain