Skip to content

Commit

Permalink
0.5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
benmerckx committed Jan 16, 2024
1 parent 7d6baab commit 8c16f57
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 2 deletions.
56 changes: 54 additions & 2 deletions apps/web/content/pages/docs/configuration.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,44 @@
{
"title": "Configuration",
"navigationTitle": "",
"body": [
{
"type": "paragraph",
"textAlign": "left",
"content": [
{
"type": "text",
"text": "All configuration can be managed from the `cms.tsx` file. This file is created in the project root (or your `src` folder if it exists) during `alinea init`."
"text": "All configuration can be managed from the `cms.tsx` file. This file is created in the project `preview`"
}
]
},
{
"type": "paragraph",
"textAlign": "left",
"content": [
{
"type": "text",
"text": "A url which is used in the dashboard for "
},
{
"type": "text",
"text": "live previews",
"marks": [
{
"type": "link",
"attrs": {
"data-id": "2a4lENV0tYD7pJsarKpb35IL4nG",
"data-entry": "2YlBsRF2vZwxcS27oOSJYmQM37q",
"data-type": "entry",
"href": null,
"title": ""
}
}
]
},
{
"type": "text",
"text": ".root (or your `src` folder if it exists) during `alinea init`."
}
]
},
Expand Down Expand Up @@ -192,6 +223,27 @@
"text": "."
}
]
},
{
"type": "heading",
"textAlign": "left",
"level": 3,
"content": [
{
"type": "text",
"text": "`syncInterval` "
}
]
},
{
"type": "paragraph",
"textAlign": "left",
"content": [
{
"type": "text",
"text": "Optionally set the interval in seconds at which the frontend will poll for updates."
}
]
}
],
"metadata": {
Expand All @@ -208,4 +260,4 @@
"type": "Docs",
"index": "Zm4"
}
}
}
14 changes: 14 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

## [0.5.7]

- The interval at which Alinea polls the backend for content updates is
now configurable. It can be set in config.syncInterval and overwritten
per query.

```tsx
// Poll for updates every 60 seconds
const results = await cms.syncInterval(60).find(Entry())
// Disable syncing all for this query in case you want results fast,
// but not necessarily up to date
const matches = await cms.disableSync().find(Entry().search('fast'))
```

## [0.5.6]

- Pages can be queried with search terms.
Expand Down

0 comments on commit 8c16f57

Please sign in to comment.