From a4d8abcf5b9cd5fdd3223bef0486d85653eec762 Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Sat, 26 Jul 2025 17:41:59 +1000 Subject: [PATCH] Update default script to export function as we are now using deno to execute functions --- constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/constants.py b/constants.py index ab1ce28..10e2b2c 100644 --- a/constants.py +++ b/constants.py @@ -1,6 +1,6 @@ DEFAULT_FUNCTION_NAME = 'foo' -DEFAULT_SCRIPT = """async (req) => { +DEFAULT_SCRIPT = """export default async (req) => { console.log(`Method:${req.method}`) console.log(`Generating ${environment.lines} random lines...`) let svgContent = "";