Skip to content

Commit 48d1584

Browse files
committed
fix: resolve ES module conflict in GitHub Actions and configure static export
1 parent 97d8a52 commit 48d1584

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

.github/workflows/nextjs.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,6 @@ jobs:
5555
cache: ${{ steps.detect-package-manager.outputs.manager }}
5656
- name: Setup Pages
5757
uses: actions/configure-pages@v5
58-
with:
59-
# Automatically inject basePath in your Next.js configuration file and disable
60-
# server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized).
61-
#
62-
# You may remove this line if you want to manage the configuration yourself.
63-
static_site_generator: next
6458
- name: Restore cache
6559
uses: actions/cache@v4
6660
with:

next.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
import type { NextConfig } from "next";
22

33
const nextConfig: NextConfig = {
4-
/* config options here */
4+
output: "export",
5+
basePath: process.env.NODE_ENV === "production" ? "/DevSetup" : "",
6+
images: {
7+
unoptimized: true,
8+
},
59
};
610

711
export default nextConfig;

0 commit comments

Comments
 (0)