Update default script to export function as we are now using deno to execute functions

This commit is contained in:
Peter Stockings
2025-07-26 17:41:59 +10:00
parent d1f8f825c3
commit a4d8abcf5b

View File

@@ -1,6 +1,6 @@
DEFAULT_FUNCTION_NAME = 'foo' DEFAULT_FUNCTION_NAME = 'foo'
DEFAULT_SCRIPT = """async (req) => { DEFAULT_SCRIPT = """export default async (req) => {
console.log(`Method:${req.method}`) console.log(`Method:${req.method}`)
console.log(`Generating ${environment.lines} random lines...`) console.log(`Generating ${environment.lines} random lines...`)
let svgContent = ""; let svgContent = "";