- 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`.
18 lines
379 B
Docker
18 lines
379 B
Docker
# Sites Renderer Dev Image (Node 22 to satisfy Vite requirements)
|
|
FROM node:22-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy package manifests first for better caching
|
|
COPY package*.json ./
|
|
|
|
RUN npm install --legacy-peer-deps
|
|
|
|
# Copy source (still bind-mounted at runtime, but needed for initial run)
|
|
COPY . .
|
|
|
|
EXPOSE 5176
|
|
|
|
CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0", "--port", "5176"]
|
|
|