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

    Environment detection in v0.15

    Framework
    2
    2
    804
    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.
    • A
      afilic last edited by

      How to detect development or production environment within js?
      In previous version I used DEV:

      if (DEV) {
      Vue.axios.defaults.baseURL = ‘https://www.mydomain.com:18843’
      }
      else {
      Vue.axios.defaults.baseURL = ‘https://www.mydomain.com:18443’
      }

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

        fairly sure it’s

        if (process.env.DEV) {}
        
        1 Reply Last reply Reply Quote 3
        • First post
          Last post