hwang26 / image-classifier

Frontend Interface for ml5.js DoodleNet classifier
0 stars 0 forks source link

Deploy first version of app #12

Closed hwang26 closed 2 years ago

hwang26 commented 2 years ago

Acceptance Criteria:

hwang26 commented 2 years ago

References:

https://wallis.dev/blog/deploying-a-next-js-app-to-github-pages https://www.suhanwijaya.com/posts/use-github-actions-deploy-nextjs-ssg-site https://dev.to/pierresaid/deploy-node-projects-to-github-pages-with-github-actions-4jco

hwang26 commented 2 years ago

When using Next JS as a Static Site Generator, we'll want to disable Github Pages Jekyll by attaching a .nojekyll file to the output.

Additionally, with Github Pages, we'll want to use assetPrefix and basePrefix since the base route is not just /

We also have an environment file that we let git push to our repo