@htlkg/astro 0.0.12 → 0.0.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htlkg/astro",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -16,10 +16,19 @@
16
16
 
17
17
  import DefaultLayout from "../layouts/DefaultLayout.astro";
18
18
  import LoginForm from "./LoginForm.vue";
19
- import { loginPageConfig } from "virtual:htlkg-config";
20
19
 
21
20
  export const prerender = false;
22
21
 
22
+ // Lazy load configuration to avoid build-time evaluation
23
+ let loginPageConfig;
24
+ try {
25
+ const config = await import("virtual:htlkg-config");
26
+ loginPageConfig = config.loginPageConfig;
27
+ } catch (e) {
28
+ // During build analysis, virtual modules may not be available
29
+ loginPageConfig = null;
30
+ }
31
+
23
32
  const {
24
33
  logo = "https://images.hotelinking.com/ui/WiFiBot.svg",
25
34
  title = "Sign In",