Skip to content

Commit 821d2fd

Browse files
committed
fix(block): send solve payloads via post
Keep large block documents out of server-function query strings so live solves do not exceed the HTTP request limit. Closes #153
1 parent 32ea0a5 commit 821d2fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/server/factorio.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export const setModulePresetDefaultFn = createServerFn({ method: "POST" })
217217
export type { BeaconConfig } from "./effects";
218218

219219
/** Solve a block live (for the editor). */
220-
export const solveBlockFn = createServerFn({ method: "GET" })
220+
export const solveBlockFn = createServerFn({ method: "POST" })
221221
.validator((d: SolveInput) => d)
222222
.handler(async ({ data }) => computeBlock(data));
223223

0 commit comments

Comments
 (0)