Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
andresnowak committed Dec 16, 2024
1 parent e408318 commit 024bae4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions next.config.mjs
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;

0 comments on commit 024bae4

Please sign in to comment.