Open
Conversation
- vercel.json: configures vercel-php@0.7.2 runtime, routes all traffic through index.php, and wires DB credentials from Vercel secrets - scripts/vercel-build.php: build-time script that generates adm_my_files/config.php from environment variables with the Ghana Council NRW root path (https://www.ghanacouncil-nrw.de) and Europe/Berlin timezone pre-configured - .vercelignore: excludes Dockerfile, CI config, and demo data from the deployment bundle https://claude.ai/code/session_01XovpLEu54vubV3n1FyyGR2
- Move scripts/vercel-build.php → vercel/build.php and fix config path - Update vercel.json buildCommand to reference vercel/build.php - Add vercel/README.md with deployment instructions and env var table - Add vercel/.env.example with all required credentials as placeholders (DB_HOST, DB_PORT, DB_NAME, DB_USER, DB_PASS) ready to paste into Vercel project settings https://claude.ai/code/session_01XovpLEu54vubV3n1FyyGR2
Vercel Hobby (free) plan caps deployments at 12 serverless functions. The previous "**/*.php" wildcard would create one function per PHP file (100+), immediately exceeding that limit. Changes: - vercel.json: replace wildcard functions with a single api/index.php function; set maxDuration: 10s (free plan max) - api/index.php: safe front controller that routes requests to the correct Admidio PHP file (root-level or modules/plugins/install/rss) with path-traversal protection; falls back to index.php for all other paths https://claude.ai/code/session_01XovpLEu54vubV3n1FyyGR2
Replace Vercel secret references (@db_host etc.) with plain demo values in vercel.json so the app deploys without any additional setup: DB_NAME = gcm_demo DB_USER = gcm_demo DB_PASS = GcmDemo@2024 DB_PORT = 3306 DB_HOST = REPLACE_WITH_DEMO_DB_HOST ← only value to fill in Anyone who pulls the repo and connects a Railway/PlanetScale MySQL database with these credentials gets a working demo instantly. Production deployments can override all values via Vercel env vars. https://claude.ai/code/session_01XovpLEu54vubV3n1FyyGR2
- vercel.json: update env to Supabase defaults (port 5432, db=postgres, user=postgres); host and password are placeholders to fill in once - vercel/build.php: change gDbType from mysql to pgsql - vercel/.env.example: document Supabase connection fields https://claude.ai/code/session_01XovpLEu54vubV3n1FyyGR2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.