Skip to content

Commit

Permalink
docs: add output to config
Browse files Browse the repository at this point in the history
  • Loading branch information
bholmesdev committed May 8, 2024
1 parent 3383e78 commit ceff804
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .changeset/shaggy-moons-peel.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
Adds experimental support for the Actions API. Actions let you define type-safe endpoints you can query from client components with progressive enhancement built in.


Actions help you write type-safe backend functions you can call from anywhere.
Actions help you write type-safe backend functions you can call from anywhere. Enable server rendering [using the `output` property](https://docs.astro.build/en/basics/rendering-modes/#on-demand-rendered) and add the `actions` flag to the `experimental` object:

```js
{
output: 'hybrid', // or 'server'
experimental: {
actions: true,
},
Expand Down
3 changes: 2 additions & 1 deletion packages/astro/src/@types/astro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1730,10 +1730,11 @@ export interface AstroUserConfig {
* @version 4.7.0
* @description
*
* Actions help you write type-safe backend functions you can call from anywhere.
* Actions help you write type-safe backend functions you can call from anywhere. Enable server rendering [using the `output` property](https://docs.astro.build/en/basics/rendering-modes/#on-demand-rendered) and add the `actions` flag to the `experimental` object:
*
* ```js
* {
* output: 'hybrid', // or 'server'
* experimental: {
* actions: true,
* },
Expand Down

0 comments on commit ceff804

Please sign in to comment.