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
No EOL
558 B
Text
21 lines
No EOL
558 B
Text
// Polyfill crypto() in the Node.js environment
|
|
"use strict";
|
|
if (!global.crypto) {
|
|
let webcrypto;
|
|
Object.defineProperty(global, 'crypto', {
|
|
enumerable: false,
|
|
configurable: true,
|
|
get () {
|
|
if (!webcrypto) {
|
|
// @ts-expect-error -- TODO: Is this actually safe?
|
|
webcrypto = require('node:crypto').webcrypto;
|
|
}
|
|
return webcrypto;
|
|
},
|
|
set (value) {
|
|
webcrypto = value;
|
|
}
|
|
});
|
|
}
|
|
|
|
//# sourceMappingURL=node-polyfill-crypto.js.map |