Skip to content

Commit 79835e6

Browse files
committed
added netlify config
1 parent 798e23c commit 79835e6

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ bun.lockb
3434
test.js
3535
.vscode
3636
bun.lockb
37+
.netlify/

netlify.toml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[build]
2+
command = "npm install"
3+
functions = "netlify/functions"
4+
publish = "."
5+
environment = { NODE_VERSION = "22" }
6+
7+
[functions]
8+
node_bundler = "zisi"
9+
directory = "netlify/functions"
10+
11+
[[redirects]]
12+
from = "/api/*"
13+
to = "/.netlify/functions/api/:splat"
14+
status = 200
15+
16+
[[redirects]]
17+
from = "/*"
18+
to = "/.netlify/functions/api"
19+
status = 200
20+
21+
[dev]
22+
command = "npm run dev"
23+
port = 8888
24+
targetPort = 5000
25+
framework = "#custom"
26+

0 commit comments

Comments
 (0)