SimulationEmbed React island with click-to-activate iframes, theme sync via postMessage/MutationObserver, and graceful fallback when SpiceBook is unavailable. 12 simulations across 6 books (555 timer, op-amp, semiconductor, formulas, communications, sensor). Books without simulations render no extra markup. client:visible hydration defers JS cost until scrolled into view.
19 lines
462 B
Plaintext
19 lines
462 B
Plaintext
# Docker Compose Configuration
|
|
COMPOSE_PROJECT_NAME=mims-library
|
|
|
|
# Mode: development or production
|
|
MODE=production
|
|
NODE_ENV=production
|
|
|
|
# Caddy reverse proxy hostname
|
|
CADDY_HOST=mims.localhost
|
|
|
|
# Dev mode: uncomment to mount src for hot reload
|
|
# DEV_MOUNT=./src
|
|
|
|
# Site URL for sitemap generation and OG meta tags
|
|
# SITE_URL=https://forrest.warehack.ing
|
|
|
|
# SpiceBook URL for interactive circuit simulations
|
|
# PUBLIC_SPICEBOOK_URL=https://spicebook.warehack.ing
|