#!/bin/bash
## Description: Run vite dev server (HMR for the SPA)
## Usage: frontend
## Example: ddev frontend
##
## Connect via the URL DDEV prints once vite is up — usually
## https://pictureframe.ddev.site:<port>. For a one-shot prod build
## (writes public/build/), run `ddev exec "cd frontend && npm run build"`.

cd frontend && npm run dev -- --host 0.0.0.0
