- Move Astro files from dealplustech-astro/ to project root - Update Dockerfile: PORT environment variable (default 80) - Add vite.config.ts with allowedHosts: true - Matches nixpacks behavior for Easypanel deployment - No hardcoded ports or domains
17 lines
380 B
JavaScript
17 lines
380 B
JavaScript
import nodeCrypto from 'node:crypto';
|
|
|
|
const subtle = nodeCrypto.webcrypto?.subtle || {};
|
|
const randomUUID = () => {
|
|
return nodeCrypto.randomUUID();
|
|
};
|
|
const getRandomValues = (array) => {
|
|
return nodeCrypto.webcrypto.getRandomValues(array);
|
|
};
|
|
const _crypto = {
|
|
randomUUID,
|
|
getRandomValues,
|
|
subtle
|
|
};
|
|
|
|
export { _crypto as default, getRandomValues, randomUUID, subtle };
|