Skip to content

Commit 482ed93

Browse files
committed
fix: Remove conditional basePath/assetPrefix for Vercel deployment
1 parent 89ecc46 commit 482ed93

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

next.config.mjs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,10 @@ try {
77
// ignore error
88
}
99

10-
// Determine if this build is specifically for GitHub Pages static export
11-
const isGithubPagesBuild = process.env.GITHUB_PAGES_BUILD === 'true';
12-
1310
/** @type {import('next').NextConfig} */
1411
const nextConfig = {
1512
// Configure basePath and assetPrefix conditionally
1613
// Use basePath only for GitHub Pages builds
17-
basePath: isGithubPagesBuild ? "/JSON_Schema_Validator" : "",
18-
assetPrefix: isGithubPagesBuild ? "/JSON_Schema_Validator/" : "/",
1914

2015
// Add eslint configuration to ignore during builds
2116
eslint: {

0 commit comments

Comments
 (0)