DEV Community


Discussion on: Vue+Flask on DigitalOcean: how to proceed?

danroc profile image
Daniel da Rocha Author

If your API is being used by the Vue app, it'll need to be public because of the nature of SPAs.

But that only in this solution or also in @rhymes solution described above?

rhymes profile image

@danroc mine is behind basic authentication. The SPA talks to the API and they both are behind basic authentication (TLS only)

colinmtech profile image
Colin Morgan

It'll be public in his solution, as well. The only difference is that the initial index.html file will be served via the flask app, instead of just through nginx.