Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow skipping BundleDetector in HttpGateway for SSR in standalone Docker containers #694

Open
ramonmalcolm10 opened this issue Dec 8, 2024 · 0 comments

Comments

@ramonmalcolm10
Copy link

Currently, the HttpGateway in Inertia JS requires the BundleDetector to verify the existence of the SSR bundle. This behavior causes issues when building the SSR application in a separate Docker container without running vite build --ssr in the Laravel container. If the SSR bundle is not detected, SSR requests are not processed, leading to failures.

It would be helpful to provide an option to skip the BundleDetector check in scenarios where the SSR build process is decoupled from the Laravel container.

Steps to Reproduce

  1. Create a Laravel project with Inertia.js and configure SSR.
  2. Build the SSR bundle in a standalone Docker container (not within the Laravel container).
  3. Deploy the Laravel container without running vite build --ssr.
  4. Attempt to process an SSR request.

Expected Behavior
The HttpGateway should allow skipping the BundleDetector check, enabling SSR requests to be processed even if the SSR bundle is not detected within the Laravel container.

Actual Behavior
The HttpGateway requires the SSR bundle to exist within the Laravel container. If it does not, SSR requests fail.

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

No branches or pull requests

1 participant