Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
9 lines
349 B
Text
9 lines
349 B
Text
const getTransformedHeaders = (headers) => {
|
|
const transformedHeaders = {};
|
|
for (const name of Object.keys(headers)) {
|
|
const headerValues = headers[name];
|
|
transformedHeaders[name] = Array.isArray(headerValues) ? headerValues.join(",") : headerValues;
|
|
}
|
|
return transformedHeaders;
|
|
};
|
|
export { getTransformedHeaders };
|