Giter VIP home page Giter VIP logo

Comments (6)

 avatar commented on August 18, 2024

#50

from lightning-cli.

AndriyShpyra avatar AndriyShpyra commented on August 18, 2024

@mattiapontonio, thank you for reply.

In my case, I have two different API endpoints (test, prod)
For instance, when I'm running 'lng dev' command, the dist folder is being created, and local server launches.
But It would be nice to pass a local variable that indicates whether to use prod URL or DEV URL
instead of each time manually change URL value before building dist folder

from lightning-cli.

 avatar commented on August 18, 2024

I agree. But as mention in the comment lng dev is just a "bonus". You can simply build and serve the folder via Your own Node server with your configs.

#50 (comment)

Side note: serving the app Is not mandatory that is served from the same server of the API so this is a Front End issue managable via some configs file. Is not a CLI serving issue, Is a build issue relative to the files that your are going to build. I think.

from lightning-cli.

michielvandergeest avatar michielvandergeest commented on August 18, 2024

There are some plans to implement environment variables, that could come in handy for these type of cases. It's currently in local development. No ETA yet.

from lightning-cli.

 avatar commented on August 18, 2024

A quick and easy solution could be spread [options] from CLI process using argv to the http-server directly.

from lightning-cli.

michielvandergeest avatar michielvandergeest commented on August 18, 2024

Support for environment variables are added in Lightning-CLI v1.7.0
https://github.com/rdkcentral/Lightning-CLI#environment-variables

from lightning-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.