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

    How to build based on staging spa using dotenv

    CLI
    2
    6
    315
    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.
    • C
      Christal last edited by

      I am using quasar build, this builds a copy based in .env.production but I need another build with .env.stage. Is there any way I can achieve it?

      1 Reply Last reply Reply Quote 0
      • Hawkeye64
        Hawkeye64 last edited by

        @Christal Use the QEnv app-extension instead – it’s less opinionated than the dotenv wrapper
        https://www.npmjs.com/package/@quasar/quasar-app-extension-qenv

        1 Reply Last reply Reply Quote 0
        • C
          Christal last edited by

          Thanks @Hawkeye64 . But I need to separate below data in 3 different files similar to dotenv, is it possible to do so using QENV?

          {
            "development": {
              "ENV_TYPE": "Running Development",
              "ENV_DEV": "Development"
            },
            "production": {
              "ENV_TYPE": "Running Production",
              "ENV_PROD": "Production"
            },
            "test": {
              "ENV_TYPE": "Running Test",
              "ENV_Test": "Test"
            }
          }
          
          1 Reply Last reply Reply Quote 1
          • Hawkeye64
            Hawkeye64 last edited by Hawkeye64

            @Christal Yes, with QEnv app-ext you can have unlimited. You can also combine.

            1 Reply Last reply Reply Quote 0
            • C
              Christal last edited by

              Is there any sample? @Hawkeye64

              1 Reply Last reply Reply Quote 0
              • Hawkeye64
                Hawkeye64 last edited by

                @Christal https://github.com/quasarframework/app-extension-qenv/tree/dev/app-extension

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post