diff --git a/docker/Dockerfile b/docker/Dockerfile index 6781b08..9fa3082 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -61,11 +61,16 @@ RUN reflex init --loglevel debug || true && \ RUN if [ -d "/build/.web" ] && [ -f "/build/.web/package.json" ]; then \ echo "Found .web directory with package.json, building frontend..." && \ cd /build/.web && \ + # Remove any existing .npmrc that might override registry + rm -f .npmrc && \ + # Set npm registry to official registry npm config set registry https://registry.npmjs.org/ && \ npm config set fetch-retry-mintimeout 20000 && \ npm config set fetch-retry-maxtimeout 120000 && \ npm config set fetch-retries 5 && \ npm config set fetch-timeout 300000 && \ + # Verify registry is set correctly + echo "Using npm registry: $(npm config get registry)" && \ if [ -f "package-lock.json" ]; then \ npm ci --prefer-offline --no-audit --loglevel verbose || \ (echo "npm ci failed, retrying with npm install..." && npm install --prefer-offline --no-audit --loglevel verbose); \ diff --git a/peikarband/rxconfig.py b/peikarband/rxconfig.py index 3746938..50b3227 100644 --- a/peikarband/rxconfig.py +++ b/peikarband/rxconfig.py @@ -13,7 +13,7 @@ BACKEND_PORT = int(os.getenv("BACKEND_PORT", "8000")) DB_URL = os.getenv("DATABASE_URL", "sqlite:////app/data/reflex.db") config = rx.Config( - app_name="src.presentation.web.pages.landing.index", + app_name="src", api_url=API_URL, frontend_port=FRONTEND_PORT, backend_port=BACKEND_PORT, diff --git a/peikarband/src/__init__.py b/peikarband/src/__init__.py index e69de29..04bc1a5 100644 --- a/peikarband/src/__init__.py +++ b/peikarband/src/__init__.py @@ -0,0 +1,10 @@ +"""Peikarband Landing Application. + +This module exports the Reflex app instance for the landing page. +""" + +# Import the app from the landing page module +from src.presentation.web.pages.landing.index import app + +__all__ = ["app"] +