1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[JBoss] How to access JBOSS system properties from JAVASCRIPT framework code?

Discussão em 'StackOverflow' iniciado por Stack, Setembro 25, 2021.

  1. Stack

    Stack Membro Participativo

    Is it possible to point environmental variables from JavaScript(e.g react, vue, angular) during build time to JBOSS System-Properties and can be access during runtime?

    Heres my sample code:

    const RESOURCE = process.env.NODE_ENV === 'production' ? (how???) : process.env.DEV_RESOURCE

    function exampleMethod(token) { return { url: ${RESOURCE }/login, method: 'POST', } }

    export { exampleMethod}

    Here is the screen shot of environmental variables in jboss.

    [​IMG]

    Continue reading...

Compartilhe esta Página