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>
21 lines
692 B
Text
21 lines
692 B
Text
export const getHttpHandlerExtensionConfiguration = (runtimeConfig) => {
|
|
return {
|
|
setHttpHandler(handler) {
|
|
runtimeConfig.httpHandler = handler;
|
|
},
|
|
httpHandler() {
|
|
return runtimeConfig.httpHandler;
|
|
},
|
|
updateHttpClientConfig(key, value) {
|
|
runtimeConfig.httpHandler?.updateHttpClientConfig(key, value);
|
|
},
|
|
httpHandlerConfigs() {
|
|
return runtimeConfig.httpHandler.httpHandlerConfigs();
|
|
},
|
|
};
|
|
};
|
|
export const resolveHttpHandlerRuntimeConfig = (httpHandlerExtensionConfiguration) => {
|
|
return {
|
|
httpHandler: httpHandlerExtensionConfiguration.httpHandler(),
|
|
};
|
|
};
|