Why does GitHub statistics show 60% HTML in my Next.js TypeScript project?
Answered
Chow Chow posted this in #help-forum
Chow ChowOP
Hey! I uploaded a Next.js project written in TypeScript to GitHub, but it shows that 60% of the code is HTML. When I check the HTML files listed, there are none visible. I already tried fixing it using .gitattributes, but the language stats still show mostly HTML — any ideas? Link to project: https://github.com/nikitodeon/booksgaleon
Answered by joulev
you uploaded your playwright-report folder. that folder shouldn't be added to git, same for almost any machine-generated files.
2 Replies
@Chow Chow Hey! I uploaded a Next.js project written in TypeScript to GitHub, but it shows that 60% of the code is HTML. When I check the HTML files listed, there are none visible. I already tried fixing it using .gitattributes, but the language stats still show mostly HTML — any ideas? Link to project: https://github.com/nikitodeon/booksgaleon
you uploaded your playwright-report folder. that folder shouldn't be added to git, same for almost any machine-generated files.
Answer
that said as far as the nextjs app is concerned, this doesn't affect it