Skip to content

Commit

Permalink
Add vercel.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicconike committed Apr 26, 2024
1 parent 3e9a597 commit 8b843d2
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,5 @@ cython_debug/

# Vercel
vercel.txt
vercel.json
Pipfile
Pipfile.lock
33 changes: 33 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"version": 2,
"functions": {
"api/*.py": {
"memory": 128,
"maxDuration": 10
}
},
"builds": [
{
"src": "api/*.py",
"use": "@vercel/python"
}
],
"routes": [
{
"src": "/api/(.*)",
"dest": "/api/$1.py"
}
],
"env": {
"STEAM_API_KEY": "@steam_api_key",
"STEAM_ID": "@steam_id",
"STEAM_CUSTOM_ID": "@steam_custom_id",
"STEAM_APP_ID": "@steam_app_id"
},
"redirects": [
{
"source": "/",
"destination": "https://github.com/Nicconike/Steam-Stats"
}
]
}

0 comments on commit 8b843d2

Please sign in to comment.