Skip to content

Commit

Permalink
only set basepath in production in next.config.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
maxzirps committed Dec 17, 2024
1 parent 7d0a7ec commit 16cadc1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/next.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import type { NextConfig } from "next";

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

const nextConfig: NextConfig = {
basePath: "/attachment-lyrics-matcher",
basePath: isProduction ? "/attachment-lyrics-matcher" : "",
output: "export",
};

Expand Down

0 comments on commit 16cadc1

Please sign in to comment.