/nuxt-website

Primary LanguageTypeScript

Nuxt website

Setup

Make sure to install the dependencies:

bun install

Development Server

Start the development server on http://localhost:3000:

bun run dev

Docker compose

Example docker-compose.override.yml with traefik:

services:
  bun:
    labels:
      traefik.enable: true
      traefik.http.routers.bun.rule: Host(`bun.localhost`)
      traefik.http.routers.bun.entrypoints: web,websecure
      traefik.http.services.bun.loadbalancer.server.port: 3000

Production

Just use the Dockerfile :)

Non-docker

Build the application for production:

bun run build

Run production build:

bun .output/server/index.mjs