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

feat: allow different base path for fastboot #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

szymsza
Copy link

@szymsza szymsza commented Sep 4, 2024

When deployed using redpencil/fastboot-app-server, the app needs to make requests to /sessions when running in the browser and http://backend/sessions when running in Fastboot. This was not possible, which led to either the browser or the Fastboot side not working.

This PR adds a new configuration option fastbootBasePath. If present, this value is used as the base path in Fastboot and basePath is used in the browser. If absent, basePath is used for both environments (as was the case until now).

To make the deployment work, this piece of code should be added to config/environment.js:

  if (environment === 'production') {
    ENV.fastbootBasePath = 'http://backend/sessions';
  }

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