securityos/node_modules/next/dist/shared/lib/isomorphic/path.js

14 lines
408 B
JavaScript
Raw Permalink Normal View History

2024-09-06 15:32:35 +00:00
/**
* This module is for next.js server internal usage of path module.
* It will use native path module for nodejs runtime.
* It will use path-browserify polyfill for edge runtime.
*/ "use strict";
let path;
if (process.env.NEXT_RUNTIME === "edge") {
path = require("next/dist/compiled/path-browserify");
} else {
path = require("path");
}
module.exports = path;
//# sourceMappingURL=path.js.map