Skip to content

Sorry for the stupid question, but can mint-lang be used to create github pages? #543

Answered by gdotdesign
kojix2 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @kojix2,

It is possible to create a GitHub page with Mint, roughly these are the steps that you need to take:

  • Create your application in Mint. Routes should use hashtags, since GitHub pages don't support redirects that are needed for other routes.
  • Build the app using mint build --skip-service-worker --relative which will create all files you need to host in the dist directory
  • Push the generated files to gh-pages branch and active it in the repository settings (https://blog.ediri.io/how-to-create-a-github-gh-pages-branch-in-an-existing-repository)
  • Done :)

Let me know if you have questions!

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@kojix2
Comment options

@gdotdesign
Comment options

@kojix2
Comment options

Answer selected by kojix2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #542 on April 14, 2022 09:22.