Skip to content

Commit 75bc439

Browse files
committed
fix: use JavaScript config instead of TypeScript for better CI compatibility
1 parent 0f41ada commit 75bc439

File tree

2 files changed

+4
-25
lines changed

2 files changed

+4
-25
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -41,28 +41,8 @@ jobs:
4141
env:
4242
NODE_ENV: production
4343

44-
- name: Check build output
45-
run: |
46-
echo "Checking build output..."
47-
ls -la
48-
if [ -d "./out" ]; then
49-
echo "✓ out directory exists"
50-
ls -la out/
51-
else
52-
echo "✗ out directory does not exist, checking .next..."
53-
ls -la .next/ || echo "No .next directory"
54-
echo "Checking if build completed..."
55-
fi
56-
5744
- name: Add .nojekyll file
58-
run: |
59-
if [ -d "./out" ]; then
60-
touch ./out/.nojekyll
61-
echo "✓ .nojekyll file created"
62-
else
63-
echo "Error: out directory does not exist"
64-
exit 1
65-
fi
45+
run: touch ./out/.nojekyll
6646

6747
- name: Upload artifact
6848
uses: actions/upload-pages-artifact@v3
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import type { NextConfig } from "next";
2-
3-
const nextConfig: NextConfig = {
1+
/** @type {import('next').NextConfig} */
2+
const nextConfig = {
43
output: 'export',
54
trailingSlash: true,
65
images: {
@@ -10,4 +9,4 @@ const nextConfig: NextConfig = {
109
assetPrefix: '/business-design-kit'
1110
};
1211

13-
export default nextConfig;
12+
module.exports = nextConfig;

0 commit comments

Comments
 (0)