UNPKG

vite-plugin-react-server

Version:
11 lines (8 loc) 446 B
import type { HandleServerActionFn } from "./types.js"; import { assertReactServer } from "../config/getCondition.js"; import { handleServerActionWithViteServer } from "../helpers/handleServerAction.server.js"; assertReactServer() export const handleServerAction: HandleServerActionFn = async function _handleServerAction(req, res, server, handlerOptions) { return handleServerActionWithViteServer(req, res, server, handlerOptions); };