Browse Source

feat: 增加动态配置

Before 6 months ago
parent
commit
8f1d63e65a
2 changed files with 6 additions and 0 deletions
  1. 3 0
      scripts/config.ts
  2. 3 0
      src/instrumentation.ts

+ 3 - 0
scripts/config.ts

@@ -0,0 +1,3 @@
+export const initConfig = () => {
+    console.log(`🚀🚀🚀🚀🚀-> in config.js on 1`, 1);
+};

+ 3 - 0
src/instrumentation.ts

@@ -0,0 +1,3 @@
+export async function register() {
+    console.log(`🚀🚀🚀🚀🚀-> in Instrumentation.ts on 3`, 1);
+}