Skip to content

Commit

Permalink
Update an error message (#11999)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarah11918 authored Sep 15, 2024
1 parent 6e1602c commit 2062958
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/astro/src/core/errors/errors-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1608,16 +1608,16 @@ export const UnsupportedConfigTransformError = {
/**
* @docs
* @see
* - [On-demand rendering](https://docs.astro.build/en/basics/rendering-modes/#on-demand-rendered)
* - [On-demand rendering](https://5-0-0-beta.docs.astro.build/en/guides/on-demand-rendering/)
* @description
* Your project must have a server output to create backend functions with Actions.
*/
export const ActionsWithoutServerOutputError = {
name: 'ActionsWithoutServerOutputError',
title: 'Actions must be used with server output.',
message:
'Actions enabled without setting a server build output. A server is required to create callable backend functions. To deploy routes to a server, add a server adapter to your astro config.',
hint: 'Learn about on-demand rendering: https://docs.astro.build/en/basics/rendering-modes/#on-demand-rendered',
'A server is required to create callable backend functions. To deploy routes to a server, add an adapter to your Astro config and configure your route for on-demand rendering',
hint: 'Add an adapter and enable on-demand rendering: https://5-0-0-beta.docs.astro.build/en/guides/on-demand-rendering/',
} satisfies ErrorData;

/**
Expand Down

0 comments on commit 2062958

Please sign in to comment.