-
Notifications
You must be signed in to change notification settings - Fork 382
No content for crawlers #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
When you inspect and see the source code once the page is loaded you will see the index.html without rendering. This is because the service worker has already saved a copy of the page. To see the html rendered on the server you should open a tab in incognito mode and put in the browser bar |
Oh, you are right :) Thanks! |
@borjapazr When i run npm run serve:ssr your app in incognito mode , i see this :
But when i run npm run dev:ssr : Everything seems nice, there is all page content in page source Also when i run your demo app in incognito i dont see any content in page source. |
First of all, this is not a project of mine :) It's a great job that @ganatan did. I have just tested the application as you say, and it works correctly for me. Try doing the following.
|
@borjapazr Yes sorry, i saw it , you only see it if its the first page view-source:http://localhost:4000/ and not localhost:4000 -> view-source:http://localhost:4000/. Another thing I would love to ask You is about deploying to heroku : I am trying to deploy this app to heroku, but getting error : Procfile : Package.json :
Deply is successfull but when I go to the website i see "
" So i write
How to fix this ? |
Hi Andrius, I do not know the deployment with heroku. the nginx.conf is
|
@ganatan Hey , great repo! I never deployed with nginx , I can't find where are this file in your repo ? Would like to see more and try to copy step by step. |
Hi, I give you all the steps
You can improve with pm2 (a process manager)
Tell me if it works
|
@ganatan, one question. Why do you need the process.config.js file to start the app with pm2? There is only one version of the final build, so You could start the app with pm2 simply with: Correct me if I am wrong or if you use it this way due to some reason. |
@borjapazr |
@ganatan why i have to create directoryt home/services/frontend and copy dist there ? Cant i just create repo in var/www/myrepo/dist and leave it there ? |
@AndriusdevLa |
I am stuck at this step : Copy the nginx.conf into /etc/nginx How to edit a file properly ? And later how to run main.js always not only when node command is running ? |
on windows : Winscp |
Hello . I want to know how to deploy with firebase the configuration please thank you |
I checked the source view of the live demo page and there is no content there.
The crawlers only see what you can get from the source.
The text was updated successfully, but these errors were encountered: