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

[Bug]: Self hosting frontend behind a proxy #1395

Open
1 task done
Kshitiz1403 opened this issue Dec 18, 2024 · 0 comments
Open
1 task done

[Bug]: Self hosting frontend behind a proxy #1395

Kshitiz1403 opened this issue Dec 18, 2024 · 0 comments

Comments

@Kshitiz1403
Copy link

Kshitiz1403 commented Dec 18, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When self hosting the frontend behind a proxy, for e.g.
/low-coder/...
the JS and CSS still point to the root URL i.e. https://proxy.com/static/index-15a42a4d.js

Expected Behavior

There should be a config to specify frontend path so that the full path can be resolved to https://proxy.com/low-coder/static/index-15a42a4d.js

Steps to reproduce

Self host the frontend behind an nginx proxy against some path.

Environment

No response

Additional Information

If we can make the parameter process.env.PUBLIC_URL configurable, this can be easily achieved.

ensureLastSlash(process.env.PUBLIC_URL)
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