D
D
danilr2020-02-26 21:57:36
Vue.js
danilr, 2020-02-26 21:57:36

How and where to upload a project on Vue Cli for demonstration?

I did a project on Vue Cli, according to the documentation I quickly uploaded it to surge.sh https://cli.vuejs.org/ru/guide/deployment.html#git...
But the problem is that in Vue Router with mode: "History "You can't follow a direct link, writes not found 404 (for example, domain.com/detail). https://router.vuejs.org/ru/guide/essentials/histo...
The Vue Router documentation says that you need to add a line to the server configuration and return all html for any request. I am not at all selenium in this, so I beg you to help in detail how to upload and set up on some free resource for demonstration.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergei Iamskoi, 2020-02-26
@syamskoy

Google firebase. Free up to 1Gb. Everything is filled with one command from the console: firebase deploy. When registering the site, everyone will be told. In the settings, specify that the application is SPA (with firebase init in the console).

A
Alex, 2020-02-26
@Kozack Vue.js

If you need a permanent public version, as for a portfolio - GitHub pages.
If you need a temporary public link to a working project - ngrok
In general, there are enough free hosting services for SPA. Just search and choose

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question