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

Local configuration of frozen pages #1692

Open
rickmcgeer opened this issue Jan 2, 2025 · 0 comments
Open

Local configuration of frozen pages #1692

rickmcgeer opened this issue Jan 2, 2025 · 0 comments
Labels
📟 support inquiry Questions that can be answered without changing code

Comments

@rickmcgeer
Copy link
Collaborator

rickmcgeer commented Jan 2, 2025

What would you like to achieve?
I'd like to have a configuration file for a Lively application. AFAICT, currently remote URLs must be hardcoded into Lively pages. The specific use case that I have is that I have a server which is going to deploy a couple of Lively pages and a bunch of other stuff. The Lively page must call back to the server to store/publish user dashboards. The issue is that I want a separate server per customer, and the server is going to store stuff appropriately for the customer. So the Lively page will have to make a request to https://<my-customer-url>/publish. ATM, I'm hardcoding the URL and a secret into $world.execCommand("open browser", {moduleName: "undefined", packageName: "engageLively--galyleo-dashboard", codeEntity: "secret"}); which is obviously (a) insecure; and (b) requires a recompile for each customer. I went into the frozen-file directory to find out where the code was, and it was in a compiled file. Now, I could do some post-compilation sed scripts on this file, but this seems pretty kludgy.

How are you trying to achieve that
Frankly, the way to achieve this seems pretty easy to me: just have a local_settings.js file which is loaded on a per-deployment basis. Where to put this with respect to the compiled files will have to be well-documented.

Alternative solutions
If applicable, what other solutions have you tried?

Additional Resources
Please provide links to any custom code that might be necessary to grasp your problem. Screenshots of custom component, etc. are also appreciated.

Version:
154aad1

@rickmcgeer rickmcgeer added the 📟 support inquiry Questions that can be answered without changing code label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📟 support inquiry Questions that can be answered without changing code
Projects
None yet
Development

No branches or pull requests

1 participant