How do i Deploy Vue js app?


#1

Hi!
A beginner question,

I’ve deployed my Vue js app, built it and i uploaded the dist file to the live server,but it seems it wont work. (dist folder is the built vue js app)

Refused to apply style from ‘http://prominence.ga/css/app.6675efdb.css’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.
3prominence.ga/:1

GET http://prominence.ga/js/app.d75cd691.js net::ERR_ABORTED 404 (Not Found)

here is the link: http://prominence.ga/personalwebsite/


#2

Good day!

As far as I can see, some resources are not loading.

  1. Please go to your Vue page,
  2. Hit F12,
  3. Go to Network tab
  4. Hit F5
  5. Analyze all requests with code 404. Make sure the scripts are linked correctly…

#3

Hi thanks for the reply,
i actually fixed it by not adding it on a sub folder of a domain,
and just made a new domain for the new site, i saw that the js and css files were being routed to “prominence.ga/js/jsfile.js” rather than “prominence.ga/personalwebsite/js/jsfile.js” is there a way to configure that?