Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
chore: apply Nextra suggestions (#132)
Browse files Browse the repository at this point in the history
* `_app.tsx` -> `_app.mdx`
* `output: 'export'` in `next.config.js`
* max fetch depth for CI to correct "latest modified" times
  • Loading branch information
novusnota authored Mar 21, 2024
1 parent df658da commit fe3d47c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Node
uses: actions/setup-node@v3
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-build-nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Node
uses: actions/setup-node@v3
Expand Down
1 change: 1 addition & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const withNextra = nextra({
* @type {import('next').NextConfig}
*/
export default withNextra({
output: 'export',
images: {
unoptimized: true
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"dev": "yarn deps && yarn clean && next",
"build": "yarn deps && yarn clean && next build",
"post-build": "echo 'spell checking, link checking, formatting'",
"build-pages": "yarn build && next export && node ./scripts/redirects-generate.js",
"build-pages": "yarn build && node ./scripts/redirects-generate.js",
"next": "next"
},
"devDependencies": {
Expand Down
4 changes: 3 additions & 1 deletion pages/_app.tsx → pages/_app.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// import '../styles.css'
{/* import '../styles.css' */}

import React from "react"

export default function App({ Component, pageProps }) {
return <Component {...pageProps} />
Expand Down

0 comments on commit fe3d47c

Please sign in to comment.