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

    Exclude .json config file from build

    Framework
    1
    1
    224
    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.
    • K
      kidox last edited by kidox

      I have an external .json file that stores certain config variables, like App URL or external API URL and set as process.env variables inside quasar.conf.js file.

      Since App URL is going to be different for each site, how can I exclude this file from building process to be able to change URL’s without needing to re-compile for each site?

      I tried to exclude the config file using ‘externals’, I tried to load as a Dynamic Import and so many different things but with no luck.

      Does anyone knows how to do it?

      Thanks!

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