@flyo/nitro-astro 2.3.0 → 2.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/DebugInfo.astro +13 -6
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
import { useFlyoIntegration, useConfig } from "
|
|
2
|
+
import { useFlyoIntegration, useConfig } from "@flyo/nitro-astro";
|
|
3
3
|
|
|
4
4
|
const integration = useFlyoIntegration();
|
|
5
5
|
const config = await useConfig(Astro);
|
|
@@ -8,6 +8,7 @@ const config = await useConfig(Astro);
|
|
|
8
8
|
const mode = import.meta.env.MODE;
|
|
9
9
|
const vercelDeploymentId = import.meta.env.VERCEL_DEPLOYMENT_ID || '-';
|
|
10
10
|
const vercelGitCommitSha = import.meta.env.VERCEL_GIT_COMMIT_SHA || '-';
|
|
11
|
+
const version = import.meta.env.VERSION || '';
|
|
11
12
|
|
|
12
13
|
// Get token and determine type
|
|
13
14
|
const token = integration.options.accessToken || '';
|
|
@@ -28,15 +29,21 @@ const apiLastUpdate = config.nitro?.updated_at
|
|
|
28
29
|
})
|
|
29
30
|
: '-';
|
|
30
31
|
|
|
31
|
-
const
|
|
32
|
+
const debugInfoParts = [
|
|
32
33
|
`liveedit:${debug}`,
|
|
33
|
-
`
|
|
34
|
-
`
|
|
35
|
-
`
|
|
34
|
+
`env:${mode}`,
|
|
35
|
+
`version:${apiVersion}`,
|
|
36
|
+
`versiondate:${apiLastUpdate}`,
|
|
36
37
|
`tokentype:${tokenType}`,
|
|
37
38
|
`did:${vercelDeploymentId}`,
|
|
38
39
|
`csha:${vercelGitCommitSha}`
|
|
39
|
-
]
|
|
40
|
+
];
|
|
41
|
+
|
|
42
|
+
if (version) {
|
|
43
|
+
debugInfoParts.push(`release:${version}`);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const debugInfo = debugInfoParts.join(' | ');
|
|
40
47
|
|
|
41
48
|
---
|
|
42
49
|
|