Skip to content

Commit

Permalink
Migrate to Next.js (#7)
Browse files Browse the repository at this point in the history
* Ported to next.js.

* Ran formatting.
  • Loading branch information
Kuinox committed Sep 28, 2023
1 parent 42cdafa commit 6bce25c
Show file tree
Hide file tree
Showing 39 changed files with 6,153 additions and 30,778 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ module.exports = {
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended"
"plugin:react/recommended",
"next/core-web-vitals"
],
"overrides": [
{
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Upload GitHub Pages artifact
uses: actions/[email protected]
with:
path: 'build'
path: 'out'

- name: Deploy GitHub Pages site
uses: actions/[email protected]
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ yarn-debug.log*
yarn-error.log*

/public/generated/

/.next
/out/
2 changes: 1 addition & 1 deletion generateAssets.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const githubLogo = {
const emojis = [];

async function main() {
if (!fs.existsSync("public/generated")){
if (!fs.existsSync("public/generated")) {
fs.mkdirSync("public/generated", { recursive: true });
}

Expand Down
5 changes: 5 additions & 0 deletions next-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
11 changes: 11 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// @ts-check

/** @type {import('next').NextConfig} */
const nextConfig = {
output: "export",
images: {
unoptimized: true,
}
}

module.exports = nextConfig
Loading

0 comments on commit 6bce25c

Please sign in to comment.