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:
+17
-1
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user