Skip to content
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

Footer cannot display stars and forks #320

Open
LeKZzzz opened this issue Aug 14, 2024 · 1 comment
Open

Footer cannot display stars and forks #320

LeKZzzz opened this issue Aug 14, 2024 · 1 comment

Comments

@LeKZzzz
Copy link

LeKZzzz commented Aug 14, 2024

The star and fork in Footer cannot be displayed like the demo(https://v4.brittanychiang.com/) in my deployment.

This is the demo:
1

And this is my deployment:
2

Maybe the useEffect function in src/components/footer.js is not working properly.
3

But I'm not a professional front-end developer, it's just my guess, haha:)

My environment is as follows:

  1. Ubuntu 20.04
  2. Gatsby CLI version: 5.13.3
  3. Gatsby version: 3.15.0
  4. Node: 20.9.0
@LeKZzzz
Copy link
Author

LeKZzzz commented Aug 14, 2024

I think I have found the problem. I did not set NODE_ENV to 'production' to cause the function to return. However, after I use export NODE_ENV=production, gatsby develop will have an error, so my current solution is to directly comment out the environment judgment.I'll appreciate it if there is a better way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant