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>
22 lines
No EOL
766 B
Text
22 lines
No EOL
766 B
Text
function nextFlightActionEntryLoader() {
|
|
const { actions } = this.getOptions();
|
|
const actionList = JSON.parse(actions);
|
|
const individualActions = actionList.map(([path, actionsFromModule])=>{
|
|
return actionsFromModule.map(({ id, exportedName })=>{
|
|
return [
|
|
id,
|
|
path,
|
|
exportedName
|
|
];
|
|
});
|
|
}).flat();
|
|
return `
|
|
${individualActions.map(([id, path, exportedName])=>{
|
|
// Re-export the same functions from the original module path as action IDs.
|
|
return `export { ${exportedName} as "${id}" } from ${JSON.stringify(path)}`;
|
|
}).join('\n')}
|
|
`;
|
|
}
|
|
export default nextFlightActionEntryLoader;
|
|
|
|
//# sourceMappingURL=next-flight-action-entry-loader.js.map |