Skip to content

Deploying test#10

Merged
david-randoll merged 4 commits into
mainfrom
deploying-test
Apr 2, 2026
Merged

Deploying test#10
david-randoll merged 4 commits into
mainfrom
deploying-test

Conversation

@david-randoll
Copy link
Copy Markdown
Owner

This pull request makes several improvements to the demo environment setup, including updates to Docker configuration, CORS policy, and frontend dependencies. The changes aim to streamline local development and ensure permissive access for demo purposes.

Docker and Environment Configuration:

  • Renamed examples/docker-compose.yml to docker-compose.yml and updated the backend and frontend service build contexts to use the examples directory, specifying the Dockerfile explicitly for each.

CORS Policy for Demo Backend:

  • Relaxed the CORS configuration in CorsConfig.java to allow all origins by setting allowedOriginPatterns to *, making it easier to access the backend from any frontend during demos.

Frontend Dependency Updates:

  • Upgraded the @emnapi/wasi-threads package from version 1.2.0 to 1.2.1 in examples/frontend/package-lock.json to ensure the latest fixes and improvements.

Update examples/docker-compose.yml to set explicit build contexts and Dockerfile paths for backend and frontend services so they build correctly from the repository root. This ensures Docker uses the example subdirectories as the build context rather than the compose file location.
Update examples/docker-compose.yml to use './backend' and './frontend' as the build contexts instead of 'examples/backend' and 'examples/frontend'. This makes the paths relative to the compose file and aligns the compose configuration with the repository layout.
Rename examples/docker-compose.yml to docker-compose.yml and update the Docker build contexts to examples/backend and examples/frontend. Ports and VITE_BACKEND_URL arg are unchanged. This centralizes the compose file at the repository root and corrects paths after the move.
Replace explicit allowed origins with setAllowedOriginPatterns(List.of("*")) to allow wildcard origins. This simplifies CORS for the demo backend (supports dynamic/dev hosts) and is compatible with allowCredentials; other CORS settings remain unchanged.
@david-randoll david-randoll merged commit 5efc432 into main Apr 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant