diff --git a/functions/v2/[[image]].js b/functions/v2/[[image]].js index 6aa80e3..3552fad 100644 --- a/functions/v2/[[image]].js +++ b/functions/v2/[[image]].js @@ -16,12 +16,11 @@ export function onRequest(context) { // The first segment of the path is probably the user var path_split = url.pathname.split("/"); - return new Response(path_split); // The image name is the part between `/vx/` and the first action token var image_name = ""; for (var token of path_split) { - if (token == "v2") { + if (token == "v2" || token == "") { continue; } if (POSSIBLE_ACTION_TOKENS.includes(token)) {