D
D
dagama2021-10-11 13:23:05
MongoDB
dagama, 2021-10-11 13:23:05

How to correctly deploy nuxt applications on github?

Hello everyone, new to this business, I apologize in advance if the solution to this problem is really easy. Started making a site on nuxt.js, using custom api/routes in the application. I did everything, the frontend is in order, the data is retrieved from the database without problems and everything works fine on localhost when I run it on my own. But now the problem is when I upload the project to github. Collected everything as it should, the dist folder, all things. Uploaded to git, visits the site - but does not see the database, from the word at all. What could be the problem? If you need any data / screenshots, I can easily provide. Thanks

Folder structure: 61641134aa20c645358094.jpeg

nuxt.config.js:6164117a71c4a037469956.jpeg61641182c1097817735908.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2021-10-11
@dagama

What could be the problem?

In a misunderstanding of what Github Pages is. The backend does not work there, only the front, only static.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question