-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e408318
commit 024bae4
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const isProd = process.env.NODE_ENV === "production"; | ||
const repoName = "/robodatapioneers2024_datastory"; | ||
|
||
const nextConfig = { | ||
output: "export", // Enables static HTML export | ||
output: "export", | ||
images: { | ||
unoptimized: true, // Ensures images work without external optimization servers | ||
unoptimized: true, | ||
}, | ||
assetPrefix: "./", // Ensures assets have the correct relative paths for GitHub Pages | ||
trailingSlash: true, // Adds trailing slashes to URLs for GitHub Pages compatibility | ||
basePath: isProd ? "/robodatapioneers2024_datastory" : "", | ||
assetPrefix: isProd ? "/robodatapioneers2024_datastory/" : "", | ||
trailingSlash: true, | ||
basePath: isProd ? repoName : "", | ||
assetPrefix: isProd ? repoName : "", | ||
}; | ||
|
||
export default nextConfig; |