We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for the new experimental actions API from Astro
Things to consider:
The text was updated successfully, but these errors were encountered:
Blocked until support for injecting actions is added: https://github.com/withastro/roadmap/blob/actions/proposals/0046-actions.md#integration-actions
Current recommendation is to export an action from the theme package for users to configure themselves
// package/actions.ts import { defineAction, z } from 'astro:actions'; export const someActions = () => { like: defineAction({ // ... }) }
// project/src/actions/index.ts import { defineAction, z } from 'astro:actions'; import { someActions } from 'my-theme/actions'; export const server = { ...someActions() };
Sorry, something went wrong.
No branches or pull requests
Add support for the new experimental actions API from Astro
Things to consider:
The text was updated successfully, but these errors were encountered: