feat: Standardize base path environment variable to NEXT_PUBLIC_BASE_PATH and introduce getImagePath utility for correct asset paths.

This commit is contained in:
Sean O'Connor
2026-02-03 18:57:52 -05:00
parent 1710f55ceb
commit 62170c83e0
5 changed files with 29 additions and 20 deletions

View File

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