@exdst-sitecore-content-sdk/astro 1.0.0 → 1.0.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/README.md CHANGED
@@ -1,3 +1,28 @@
1
1
  # Sitecore Content SDK for Astro
2
2
 
3
- This module contains Astro components and integration for Sitecore Content SDK.
3
+ `@exdst-sitecore-content-sdk/astro` provides Astro components and integration for the [Sitecore Content SDK](https://doc.sitecore.com/xmc/en/developers/content-sdk/index.html), letting you build SitecoreAI(XM Cloud) websites with [Astro](https://astro.build/). It follows the same patterns as the official Next.js Content SDK and supports running Astro locally as a rendering host with metadata editing mode for the SitecoreAI Pages editor.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @exdst-sitecore-content-sdk/astro
9
+ ```
10
+
11
+ The fastest way to start a new project is the initializer:
12
+
13
+ ```bash
14
+ npx @exdst-sitecore-content-sdk/create-astro@latest
15
+ ```
16
+
17
+ ## Why Astro
18
+
19
+ Astro renders to HTML by default and only hydrates the islands that actually need JavaScript. Measured against the same demo on Next.js with the Content SDK, the Astro build delivers higher Lighthouse scores on mobile, faster LCP, and less main-thread blocking — read the [case study](https://exdst.com/case-studies/sitecore-astro-sdk).
20
+
21
+ ## Learn more
22
+
23
+ * Release notes: [Sitecore Astro Content SDK release](https://exdst.com/posts/20260531-astro-content-sdk-release)
24
+ * Why Astro for Sitecore: [case study](https://exdst.com/case-studies/sitecore-astro-sdk) · [Astro services](https://exdst.com/services/astro)
25
+ * Repository root: [jss-astro-public](../../../README.md)
26
+ * Initializer: [`@exdst-sitecore-content-sdk/create-astro`](../create-astro-content-sdk-app/)
27
+
28
+ Made by [EXDST](https://exdst.com/)
package/package.json CHANGED
@@ -1,7 +1,19 @@
1
1
  {
2
2
  "name": "@exdst-sitecore-content-sdk/astro",
3
- "version": "1.0.0",
4
- "description": "Astro Content SDK for Sitecore AI (XM Cloud)",
3
+ "version": "1.0.2",
4
+ "description": "Astro Content SDK for SitecoreAI(XM Cloud)",
5
+ "keywords": [
6
+ "sitecore",
7
+ "astro",
8
+ "headless",
9
+ "ssg",
10
+ "islands",
11
+ "jamstack",
12
+ "content-sdk",
13
+ "xm-cloud",
14
+ "sitecoreai"
15
+ ],
16
+ "homepage": "https://github.com/exdst/jss-astro-public#astro-content-sdk",
5
17
  "type": "module",
6
18
  "sideEffects": false,
7
19
  "publishConfig": {
@@ -28,7 +40,8 @@
28
40
  },
29
41
  "repository": {
30
42
  "type": "git",
31
- "url": "https://github.com/exdst/jss-astro-public"
43
+ "url": "https://github.com/exdst/jss-astro-public",
44
+ "directory": "astro-content-sdk/packages/astro-content-sdk"
32
45
  },
33
46
  "license": "Apache-2.0",
34
47
  "bugs": {
@@ -291,7 +291,7 @@ export const isDesignLibraryPreviewData = (
291
291
  * 1. `config.sitecoreInternalEditingHostUrl` (explicitly set in config)
292
292
  * 2. Environment variable `SITECORE_INTERNAL_EDITING_HOST_URL`
293
293
  * 3. Fallbacks:
294
- * - For XM Cloud deployments → `'http://localhost:3000'`
294
+ * - For SitecoreAI(XM Cloud) deployments → `'http://localhost:3000'`
295
295
  * - For all other cases → use the request `Host` header
296
296
  * Note we use https protocol on Vercel due to serverless function architecture.
297
297
  * In all other scenarios, including localhost (with or without a proxy e.g. ngrok)