No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Idea for access node running environment variables at SSR Mode without building

    Help
    1
    2
    152
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • iamike
      iamike last edited by

      Hi,
      currently, I am using ssr mode for developing my project.
      and each time when some environment variables need update.
      The Jenkins pipeline will involve the building process for the changes.
      sometime even for some little tiny changes, like change api host address.
      because we set the api env at quasar.conf.js build block. like below:

      ...
          build: {
            env: {
      java_api_host:JSON.stringify(process.env.JAVA_API_HOST)
            },
      ...
      

      so,

      when we using some container tools like docker.

      some time you just can bring the ENV params into the built package. because it is already generated content,
      if you check the /dist/ssr/www/js/app.xxxxx.js
      f71fa0c5-6515-4e7a-9106-79dc6a2e2b23-image.png
      so there is no way for me to bring those env variables directly to the ssr dist files, it’s won’t work.
      fa1784ef-cfc9-4222-9cb9-f8499cf568f9-image.png

      is there any solution that for me to optimize this issue?

      appreciate.

      iamike 1 Reply Last reply Reply Quote 0
      • iamike
        iamike @iamike last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • First post
          Last post