Rocky_Mountain_Vending/.pnpm-store/v10/files/15/a5132d3ec675087c4455a359e68a5a3257d18719705d05b466440c8f8bf4d6abf3f946a55698f8af0bb68540db10cb2e4f713afb4c9204a6fd308680f4a461
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
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>
2026-02-12 16:22:15 -07:00

18 lines
No EOL
809 B
Text

import { workAsyncStorage } from '../app-render/work-async-storage.external';
/**
* This function allows you to schedule callbacks to be executed after the current request finishes.
*/ export function after(task) {
const workStore = workAsyncStorage.getStore();
if (!workStore) {
// TODO(after): the linked docs page talks about *dynamic* APIs, which after soon won't be anymore
throw Object.defineProperty(new Error('`after` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context'), "__NEXT_ERROR_CODE", {
value: "E468",
enumerable: false,
configurable: true
});
}
const { afterContext } = workStore;
return afterContext.after(task);
}
//# sourceMappingURL=after.js.map