From 1b952223460b36bf620c78da1694e019cb08d17d Mon Sep 17 00:00:00 2001 From: arielherself Date: Sun, 26 Nov 2023 22:17:55 +0800 Subject: [PATCH] feat(backend): use Vercel Serverless Functions for backend --- .gitignore | 1 + .idea/workspace.xml | 47 ++++++++++++++++++++++++++++++--------------- api/click.js | 7 +++++++ api/handshake.js | 12 ++++++++++++ src/App.js | 2 +- src/Networking.js | 14 ++++++-------- src/UMap.js | 8 +++++--- 7 files changed, 63 insertions(+), 28 deletions(-) create mode 100644 api/click.js create mode 100644 api/handshake.js diff --git a/.gitignore b/.gitignore index 927d17b..b0290a3 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ npm-debug.log* yarn-debug.log* yarn-error.log* +.vercel diff --git a/.idea/workspace.xml b/.idea/workspace.xml index dd5ff0e..ec52ba3 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,14 +5,26 @@ + + + - + + + + + + @@ -27,21 +39,23 @@