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

    Is there a way to tell whether --debug is on in a component?

    Framework
    1
    4
    69
    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.
    • W
      walfin last edited by

      Or for that matter to access all the quasar ctx properties accessible in quasar.conf.js in a component?

      I want to call a different API (call to localhost) when the application is built using debug mode.

      1 Reply Last reply Reply Quote 0
      • W
        walfin last edited by

        E.g. is there something like this.$q.platform.is.debug?

        1 Reply Last reply Reply Quote 0
        • W
          walfin last edited by

          Or even better, is there a way to use conditional compilation in vue components depending on the ctx properties in quasar.conf.js?

          1 Reply Last reply Reply Quote 0
          • W
            walfin last edited by

            I found the solution, it’s to use process.env.

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