@yysng/astro-boilerplate 1.1.12 → 1.1.14

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": "@yysng/astro-boilerplate",
3
- "version": "1.1.12",
3
+ "version": "1.1.14",
4
4
  "description": "Astro + Sanity Boilerplate with AEO Layers 1–5",
5
5
  "type": "module",
6
6
  "exports": {
@@ -1,12 +1,11 @@
1
- let CONTENT_ROOT = null;
1
+ let contentRoot = null;
2
2
 
3
3
  export function setContentRoot(path) {
4
- CONTENT_ROOT = path;
4
+ contentRoot = path;
5
5
  }
6
6
 
7
7
  export function getContentRoot() {
8
- if (!CONTENT_ROOT) {
9
- throw new Error("Content root not configured. Call setContentRoot() from the site.");
10
- }
11
- return CONTENT_ROOT;
8
+ // When running on edge, we no longer require filesystem root.
9
+ // Loader will use import.meta.glob instead.
10
+ return contentRoot;
12
11
  }