Update CORS settings, enhance API URL detection, and improve template rendering

- Added new CORS origins for local development and specific IP addresses in `settings.py`.
- Refactored API URL retrieval logic in `loadSiteDefinition.ts` and `fileAccess.ts` to auto-detect based on the current origin.
- Enhanced error handling in API calls and improved logging for better debugging.
- Updated `renderTemplate` function to support additional block types and improved rendering logic for various components in `templateEngine.tsx`.
This commit is contained in:
IGNY8 VPS (Salman)
2025-11-18 19:52:42 +00:00
parent d696d55309
commit 0eb039e1a7
12 changed files with 341 additions and 17 deletions

View File

@@ -6,7 +6,7 @@ WORKDIR /app
# Copy package manifests first for better caching
COPY package*.json ./
RUN npm install
RUN npm install --legacy-peer-deps
# Copy source (still bind-mounted at runtime, but needed for initial run)
COPY . .