Skip to content

Commit dde229b

Browse files
committed
feat: Configure Vercel deployment by adding a production script, including config files for the interactions API, and ignoring build output.
1 parent 0a78d90 commit dde229b

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ dist/
2323
# Test files
2424
test.js
2525
old_src/
26+
.vercel

api/interactions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ export default mini.createNodeHandler({
1111
console.log(e)
1212
}
1313
}
14-
})
14+
})

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "AI support bot for Discord servers & users",
55
"main": "index.js",
66
"scripts": {
7-
"build": "tsx scripts/register.ts"
7+
"build": "tsx scripts/register.ts",
8+
"production": "vercel --prod"
89
},
910
"keywords": [
1011
"discord",

vercel.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"api/interactions.ts": {
1414
"maxDuration": 10,
15-
"includeFiles": "{src/commands/**,src/components/**,src/utils/**}"
15+
"includeFiles": "src/{commands,components,utils,config}/**"
1616
},
1717
"api/discord-oauth-callback.ts": {
1818
"maxDuration": 10,

0 commit comments

Comments
 (0)