prepared for vercel

This commit is contained in:
Yannik
2023-08-13 23:41:23 +02:00
parent 063f559624
commit fab2efb88a
2 changed files with 19 additions and 0 deletions

View File

@@ -12,6 +12,10 @@ app.listen(port, () => {
console.log("Server Listening on PORT:", port);
});
app.get("/", (a, response) => {
response.send("Please provide a Discord user id after the slash.");
});
app.get("/*", (a, response) => {
const options = {

View File

@@ -0,0 +1,15 @@
{
"version": 2,
"builds": [
{
"src": "app.js",
"use": "@now/node"
}
],
"routes": [
{
"src": "/(.*)",
"dest": "app.js"
}
]
}