feat: Configure Next.js basePath using the NEXT_PUBLIC_BASE_PATH environment variable in the build workflow and application configuration.

This commit is contained in:
Sean O'Connor
2026-02-03 18:42:58 -05:00
parent d90c2f4e96
commit 1fec6dd607
2 changed files with 2 additions and 1 deletions

View File

@@ -7,7 +7,7 @@ import "./src/env.js";
/** @type {import("next").NextConfig} */
const config = {
output: "export",
basePath: process.env.GITHUB_ACTIONS ? "/lewisburg-coffee" : undefined,
basePath: process.env.NEXT_PUBLIC_BASE_PATH || undefined,
images: {
unoptimized: true,
},