Skip to content

Commit

Permalink
update base path
Browse files Browse the repository at this point in the history
  • Loading branch information
V00D00-child committed Nov 10, 2024
1 parent 1379216 commit 6f9e8ba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion next.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import type { NextConfig } from "next";

const isProd = process.env.NODE_ENV === "production";

const nextConfig: NextConfig = {
output: "export", // <=== enables static exports
output: isProd ? "export" : undefined,
basePath: isProd ? "/transeptor-landing": "",
};

export default nextConfig;

0 comments on commit 6f9e8ba

Please sign in to comment.