Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

GitHub pages returning content-type application/octet-stream for .html #331

Closed
5 tasks done
xvaara opened this issue Feb 5, 2023 · 3 comments
Closed
5 tasks done

Comments

@xvaara
Copy link

xvaara commented Feb 5, 2023

Describe the bug

vite-ssg creates a ".html" names file for the route /
using github pages it is served as index using wrong content-type

# curl -i https://xvaara.github.io/vite-ssg-ghpages/
HTTP/2 200
server: github.com
content-type: application/octet-stream

github support suggested that it's not a bug on their end, so opening a ticket.

seems that vite-plugin-vue-layouts causes some url to be generated. without it the .html file isn't created.

Reproduction

https://github.com/xvaara/vite-ssg-ghpages

System Info

not relavant

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.
@xvaara xvaara changed the title github pages returning content-type application/octet-stream for .html GitHub pages returning content-type application/octet-stream for .html Feb 5, 2023
@xvaara
Copy link
Author

xvaara commented Feb 5, 2023

seems that there is a pull request to fix this in vite-plugin-vue-layouts:
JohnCampionJr/vite-plugin-vue-layouts#97

still seems like a weird file to create :D

@YunYouJun
Copy link
Contributor

@JohnCampionJr Let's get it going.

@xvaara
Copy link
Author

xvaara commented Feb 24, 2023

fixed in vite-plugin-vue-layouts v0.8.0

@xvaara xvaara closed this as completed Feb 24, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants