We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc1718c commit 1d21595Copy full SHA for 1d21595
netlify.toml
@@ -16,10 +16,6 @@
16
path = "/latest"
17
function = "latest"
18
19
-[[edge_functions]]
20
- path = "/hello"
21
- function = "hello"
22
-
23
24
[[edge_functions]]
25
path = "/:shortUrl"
netlify/edge-functions/hello.ts
netlify/edge-functions/utils.ts
@@ -51,6 +51,8 @@ export async function generateShortUrl(longUrl: string): Promise<string> {
51
console.error("Error checking for collision:", error);
52
throw error;
53
}
54
+ console.log(data);
55
+ console.log(error);
56
isCollision = data.length > 0;
57
58
({ data, error } = await fetchFromSupabase("urls", {
0 commit comments