dynamically change public path in vue js
mohsen158 opened this issue · comments
i want put my vue js project in ipfs . and because of that i have to change my baseuri or public path to be :
/ipfs/[hash string which i get after file added to ipfs]
but i cant do that
means i want to set public path be dynamically depends on real url
somethink like this :
module.exports = {
publicPath: process.env.NODE_ENV === 'production' ?
'/ipfs/[hash string which i get after file added to ipfs]/' : '/'
}
whats your idea to solve this problem?