Skip to content

Commit

Permalink
move error to server
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansolid committed Jan 25, 2024
1 parent 27d60cd commit 27ca39e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions packages/start/config/server-fns-runtime.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { provideRequestEvent } from "solid-js/web/storage";
import { cloneEvent } from "../server/middleware";

export function createServerReference(fn, id, name) {
if (typeof fn !== "function") throw new Error("Export from a 'use server' module must be a function");
const baseURL = import.meta.env.SERVER_BASE_URL;
return new Proxy(fn, {
get(target, prop, receiver) {
Expand Down
1 change: 0 additions & 1 deletion packages/start/config/server-runtime.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ async function fetchServerFunction(base, id, method, args) {

export function createServerReference(fn, id, name) {
const baseURL = import.meta.env.SERVER_BASE_URL;
if (typeof fn !== "function") throw new Error("Export from a 'use server' module must be a function");
return new Proxy(fn, {
get(target, prop, receiver) {
if (prop === "url") {
Expand Down

0 comments on commit 27ca39e

Please sign in to comment.