Rocky_Mountain_Vending/.pnpm-store/v10/files/0f/6bfc641280bdda6cf0f681a2270df17814384b237aa437e1b5bc5150e40cdf7e04e1874bf7d9adf601047676c370b49d40f6b4641df097e1be428e5bc734e9
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

23 lines
No EOL
990 B
Text

import { InvariantError } from '../shared/lib/invariant-error';
export function getAssetPrefix() {
const currentScript = document.currentScript;
if (!(currentScript instanceof HTMLScriptElement)) {
throw Object.defineProperty(new InvariantError(`Expected document.currentScript to be a <script> element. Received ${currentScript} instead.`), "__NEXT_ERROR_CODE", {
value: "E783",
enumerable: false,
configurable: true
});
}
const { pathname } = new URL(currentScript.src);
const nextIndex = pathname.indexOf('/_next/');
if (nextIndex === -1) {
throw Object.defineProperty(new InvariantError(`Expected document.currentScript src to contain '/_next/'. Received ${currentScript.src} instead.`), "__NEXT_ERROR_CODE", {
value: "E784",
enumerable: false,
configurable: true
});
}
return pathname.slice(0, nextIndex);
}
//# sourceMappingURL=asset-prefix.js.map