Files
SluijsensandClaude Sonnet 5 fa389e42ee
Continuous Integration / config (pull_request) Successful in 11s
Continuous Integration / changes (pull_request) Successful in 21s
Continuous Integration / backend-build (pull_request) Successful in 6m10s
Continuous Integration / vulnerability-scan (pull_request) Successful in 4m59s
Continuous Integration / frontend-prepare (pull_request) Successful in 1m27s
Continuous Integration / backend-test (pull_request) Failing after 7m48s
Continuous Integration / frontend-build (pull_request) Successful in 2m5s
Continuous Integration / frontend-test (pull_request) Successful in 4m24s
Continuous Integration / frontend-lint (pull_request) Successful in 2m0s
Continuous Integration / publish-test (pull_request) Skipped
Continuous Integration / publish-production (pull_request) Skipped
Continuous Integration / deploy-test (pull_request) Skipped
Continuous Integration / deploy-production (pull_request) Skipped
Adds SlpModularCms.Api.SlpSoftware and extracts shared CmsHost composition
Unit 1 of the slpsoftware-api feature (FR-1/FR-2/FR-3): a new Client project
in the Clients solution folder, intended to eventually become the deployed
API for test.slpsoftware.nl/slpsoftware.nl, hosting the same four modules as
SlpModularCms.Api plus a future Offerings module.

- Extracts SlpModularCms.Api/Program.cs's hosting-pipeline composition into
  SlpModularCms.Core.Hosting.CmsHost (ConfigureServices/ConfigurePipeline),
  shared by both Client projects so they cannot drift apart
- Moves StaticContentExtensions.cs + WebsitePlaceholder.html from Api into
  Core, since CmsHost cannot live in Api but Core cannot depend on Api
- Adds SlpModularCms.Api.SlpSoftware with its own isolated local dev database
  and dev ports (5286/7223, distinct from Api's and Api.Slave's)
- Adds SlpModularCms.Api.Tests with WebApplicationFactory-based pipeline
  regression tests (security headers, health check, SPA fallback, rate
  limiting), scoped to Api per NFR Design
- Adds a frontend dev:slpsoftware pnpm script mirroring dev:slave
- Fixes GlobalExceptionHandler logging routine 401s (e.g. an expired/missing
  refresh token) as unhandled errors -- pre-existing, unrelated to this
  feature's own scope, found while testing the new instance

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FWyStNL2ZsjrS7FLd7xvvN
2026-08-02 01:28:39 +02:00

48 lines
2.5 KiB
Bash

# Base URL of the SlpModularCms .NET API.
#
# Leave this empty (or unset) for the production default: the SPA and the API are served by the
# same process, so an empty value means same-origin — requests use relative paths and no CORS
# configuration is needed at all. An explicit absolute URL is still honoured and required for local
# development, where the frontend dev server and the backend run on different ports:
# The backend must be running with CORS configured to allow this origin
# and to send the httpOnly refresh-token cookie (credentials: include).
# Set CookieSameSite=None in appsettings.Development.json so the cookie
# is sent cross-origin when the frontend and backend run on different ports.
VITE_API_BASE_URL=https://localhost:7221
# Browser tab title. Defaults to "SlpModularCms" if unset — override so the
# tab is instantly recognizable when running multiple instances side by side
# (e.g. local master vs. slave, see below).
VITE_APP_TITLE=SlpModularCms
# --- Observability (all optional — absent is a supported state, not an error) ---
# Sentry DSN for the admin SPA. Absent or empty skips Sentry initialisation entirely; only console
# logging remains active. Not sensitive — safe to expose in the client bundle.
VITE_SENTRY_DSN=
# Environment tag attached to Sentry events (e.g. "test", "production"). Set per-environment by the
# CI pipeline (see .gitea/workflows/continuous_integration.yaml) — leave empty for local development.
VITE_APP_ENV=
# Umami analytics script host and this environment's website ID. Both absent means the Umami
# component renders nothing — leave unset for local development.
VITE_UMAMI_SCRIPT_URL=
VITE_UMAMI_WEBSITE_ID=
# --- Local master/slave dev setup ---
# To point the frontend at the slave instance (SlpModularCms.Api.Slave,
# see root README.md "Lokaal Master + Slave Draaien (Dev)") instead of the
# master, copy this file to `.env.slave.local` with:
# VITE_API_BASE_URL=https://localhost:7222
# VITE_APP_TITLE=SlpModularCms (Slave)
# and run `pnpm dev:slave` (uses --mode slave, port 5174) instead of `pnpm dev`.
# --- Local SlpModularCms.Api.SlpSoftware dev setup ---
# To point the frontend at the SlpSoftware client instance (SlpModularCms.Api.SlpSoftware,
# see root README.md "Projectstructuur") instead of the master, copy this file to
# `.env.slpsoftware.local` with:
# VITE_API_BASE_URL=https://localhost:7223
# VITE_APP_TITLE=SlpModularCms (SlpSoftware)
# and run `pnpm dev:slpsoftware` (uses --mode slpsoftware, port 5175) instead of `pnpm dev`.