Skip to content

Commit 1d21595

Browse files
committed
Edge Functions
Removed test hello.ts Updated utils.ts to include console.logging.
1 parent cc1718c commit 1d21595

File tree

3 files changed

+2
-16
lines changed

3 files changed

+2
-16
lines changed

netlify.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@
1616
path = "/latest"
1717
function = "latest"
1818

19-
[[edge_functions]]
20-
path = "/hello"
21-
function = "hello"
22-
2319

2420
[[edge_functions]]
2521
path = "/:shortUrl"

netlify/edge-functions/hello.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

netlify/edge-functions/utils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ export async function generateShortUrl(longUrl: string): Promise<string> {
5151
console.error("Error checking for collision:", error);
5252
throw error;
5353
}
54+
console.log(data);
55+
console.log(error);
5456
isCollision = data.length > 0;
5557
}
5658
({ data, error } = await fetchFromSupabase("urls", {

0 commit comments

Comments
 (0)