feat: add demo user and fix __dirname and fix cdn for panel upload
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
import path from 'path';
|
||||
import path, { dirname } from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
export const getRequire = () => {
|
||||
return eval('require') as NodeRequire;
|
||||
};
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
export const directoryPath = path.resolve(__dirname);
|
||||
|
||||
export const defaultImportModules = [
|
||||
|
||||
Reference in New Issue
Block a user