- Set basePath in next.config.ts for serving under /hp-prod-tracker
- Create apiUrl() helper to prepend basePath to fetch calls
- Update all 28 fetch("/api/...") calls across 16 files
- Add GCS storage migration plan doc
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
17 lines
355 B
TypeScript
17 lines
355 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const basePath = "/hp-prod-tracker";
|
|
|
|
const nextConfig: NextConfig = {
|
|
output: "standalone",
|
|
basePath,
|
|
env: {
|
|
NEXT_PUBLIC_BASE_PATH: basePath,
|
|
},
|
|
experimental: {
|
|
// Allow large video uploads (up to 500MB) through the proxy
|
|
proxyClientMaxBodySize: "500mb",
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|