Skip to content

Commit cc66983

Browse files
committed
Fix automated build and deploy
1 parent 3716bd3 commit cc66983

3 files changed

Lines changed: 19 additions & 16 deletions

File tree

.github/workflows/nextjs.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,7 @@ jobs:
5757
cache: ${{ steps.detect-package-manager.outputs.manager }}
5858
- name: Setup Pages
5959
uses: actions/configure-pages@v5
60-
with:
61-
# Automatically inject basePath in your Next.js configuration file and disable
62-
# server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized).
63-
#
64-
# You may remove this line if you want to manage the configuration yourself.
65-
static_site_generator: next
60+
6661
- name: Restore cache
6762
uses: actions/cache@v4
6863
with:

next.config.mjs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import nextra from 'nextra'
2+
3+
/**
4+
* @type {import('next').NextConfig}
5+
*/
6+
const nextConfig = {
7+
output: 'export',
8+
images: {
9+
unoptimized: true // mandatory, otherwise won't export
10+
}
11+
// Optional: Change the output directory `out` -> `dist`
12+
// distDir: "build"
13+
}
14+
const withNextra = nextra({
15+
// ... other Nextra config options
16+
})
17+
18+
export default withNextra(nextConfig)

next.config.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)