-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Separate configuration from build artifact #21
Comments
https://www.pluralsight.com/guides/how-to-store-and-read-configuration-files-using-react Doing more research there seems to be a lot more options out there. |
towards #21 but seems to be a particale challenge using webpack
This really appears to be a technical limitation with the original design of the project. Using webpack allowed for the static output to be hosted via the C++ backend but that "static" requires the building the artifact with the configuration 🤔 |
In order to achieve this goal its possible use a hybrid solution where the frontend is hosted by a node.js server like express or https://github.com/fastify/fastify which looks very promising. Still more research to see how this can be over come |
static pre-rendered data, which is the fastest browsing seems to really be limited on this front prince-chrismc/Hello-Next@8dce160 As soon as any packing takes place, it needs to be built into the artifact! very frustrating topic! |
This has dropped in priority since the front-end needs to be built with the correct FQDN for technical reasons and the back-end will be deployed in HTTP. There is no configuration which can no be set from the docker images |
A possibility here is to have a configuration file, not a part of the web application, but the micro service hosted/exposed by the web server.
|
Front-end
create separateconfig.js
that exports aconfig
objecthook to verify onlyconfig.js
accesses environment variablesUpdate: Neither of the options listed were supported via WebPack
Back-end
The text was updated successfully, but these errors were encountered: