Skip to content

Commit

Permalink
Update env vars.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathewjordan committed Jan 28, 2025
1 parent 4bd6eae commit cdb2579
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions next.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import type { NextConfig } from "next";

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

const nextConfig: NextConfig = {
output: "export",
basePath: isProduction ? process.env.NEXT_PUBLIC_BASE_PATH : "",
publicRuntimeConfig: {
url: isProduction ? process.env.NEXT_PUBLIC_URL : "",
},
};

export default nextConfig;

0 comments on commit cdb2579

Please # to comment.