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

chore: Nextra/Next.js suggestions #132

Merged
merged 1 commit into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading