#!/bin/bash
echo "Starting Hugo Dev Server with code-server proxy settings..."
echo "Access the site at: https://dev.wompmacho.com/absproxy/1313/"

# Clean up static public build directory to prevent local proxy styling conflicts
rm -rf public/

hugo server \
  --bind 0.0.0.0 \
  --port 1313 \
  --baseURL "https://dev.wompmacho.com/absproxy/1313/" \
  --appendPort=false \
  --liveReloadPort 443 \
  --buildDrafts \
  --buildFuture \
  --renderToMemory
