Starts the contact form feature: AI-DLC inception and design, dev proxy for /api

Adds the contact-form-cms feature docs (requirements, execution plan,
functional and infrastructure design, code generation plan) and an optional
Vite dev proxy for /api through API_PROXY_TARGET.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-10 23:04:16 +01:00
co-authored by Claude Sonnet 5.5
parent 7d594ffa1d
commit 4da314c0ba
10 changed files with 490 additions and 1 deletions
+17 -1
View File
@@ -59,7 +59,23 @@ export default defineConfig(({ mode }) => ({
tsconfigPaths: true,
},
// Dev: zelfde headers, met alleen de uitzonderingen die Vite nodig heeft
server: { headers: securityHeaders('development') },
server: {
headers: securityHeaders('development'),
// Alleen als API_PROXY_TARGET gezet is (bijv. http://192.168.1.2:5290):
// /api gaat dan via de dev-server naar die API, dus voor de browser
// same-origin, net als in productie (geen CORS, connect-src 'self').
// Zonder de variabele (ook in CI) is er geen proxy.
...(process.env.API_PROXY_TARGET
? {
proxy: {
'/api': {
target: process.env.API_PROXY_TARGET,
changeOrigin: true,
},
},
}
: {}),
},
// Preview: de strenge productieset
preview: { headers: securityHeaders('production') },
test: {