diff --git a/AGENTS.md b/AGENTS.md index a604f7e..fc91396 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -171,6 +171,14 @@ MySQL database connection configured in `api/config/database.php`: - **Test**: http://localhost:5173 - login with admin/password - **API base URL**: http://localhost:8000/api/ +### Starting the PHP Server + +For file uploads to work, start the server with the custom upload config: +```bash +cd api +php -c php-upload.ini -S localhost:8000 router.php +``` + ## Current Tech Stack (2024) - **Frontend**: SvelteKit (NOT Vue.js 2) in `/partitions/` diff --git a/partitions/svelte.config.js b/partitions/svelte.config.js index b05de8e..7d63115 100644 --- a/partitions/svelte.config.js +++ b/partitions/svelte.config.js @@ -22,7 +22,7 @@ const config = { 'script-src': ['self', 'unsafe-inline'], 'style-src': ['self', 'unsafe-inline'], 'img-src': ['self', 'data:', 'blob:'], - 'connect-src': ['self', 'http://localhost:8000', 'https://*.ohmj.fr'], + 'connect-src': ['self', 'http://localhost:8000', 'https://*.ohmj.fr', 'blob:'], 'font-src': ['self'], 'object-src': ['none'], 'frame-ancestors': ['none'],