@flyo/nitro-astro 2.0.8 → 2.0.9

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.
Files changed (2) hide show
  1. package/README.md +6 -3
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -12,10 +12,11 @@ This guide targets developers and web designers aiming to combine Flyo Nitro CMS
12
12
 
13
13
  ## Installation
14
14
 
15
- To install the package, execute the following command:
15
+ To install the `@flyo/nitro-astro` package, execute the following command:
16
16
 
17
17
  ```bash
18
- astro add @flyo/nitro-astro
18
+ npm install @flyo/nitro-astro
19
+ # yarn add @flyo/nitro-astro
19
20
  ```
20
21
 
21
22
  Then, revise and adjust the configuration in your `astro.config.mjs`:
@@ -41,6 +42,7 @@ export default defineConfig({
41
42
  });
42
43
  ```
43
44
 
45
+ > [!WARNING]
44
46
  > The nitro astro integration requires an SSR setup which is done by using `output: 'server'`.
45
47
 
46
48
  ### Pages
@@ -245,7 +247,8 @@ All endpoints accept a `lang` parameter to retrieve data in the desired language
245
247
  await useEntitiesApi().entityByUniqueid({ uniqueid, lang: Astro.currentLocale });
246
248
  ```
247
249
 
248
- Note: If your entity details are internationalized (i18n), you need to create separate detail pages for each language.
250
+ > [!NOTE]
251
+ > If your entity details are internationalized (i18n), you need to create separate detail pages for each language.
249
252
 
250
253
  ```
251
254
  .
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@flyo/nitro-astro",
3
- "version": "2.0.8",
3
+ "version": "2.0.9",
4
4
  "description": "Connecting Flyo Headless Content Hub into your Astro project.",
5
5
  "homepage": "https://dev.flyo.cloud/nitro",
6
6
  "keywords": [
7
7
  "withastro",
8
- "astro-adapter"
8
+ "flyo"
9
9
  ],
10
10
  "main": "./dist/nitro-astro.js",
11
11
  "module": "./dist/nitro-astro.mjs",