fixed login session for user name, and updated the api calls on the product detials pages.
CI / test (push) Successful in 6s
CI / test (push) Successful in 6s
This commit is contained in:
@@ -31,8 +31,9 @@ export default async function BuildBreakdownPage({
|
||||
}: {
|
||||
params: { buildId: string };
|
||||
}) {
|
||||
// Public detail endpoint
|
||||
const res = await fetch(`${API_BASE_URL}/api/v1/builds/${params.buildId}`, {
|
||||
// Public detail endpoint - use Next.js API route
|
||||
const baseUrl = process.env.NEXT_PUBLIC_APP_URL || 'http://localhost:3000';
|
||||
const res = await fetch(`${baseUrl}/api/builds/public/${params.buildId}`, {
|
||||
cache: "no-store",
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user