Skip to content

Commit b4793fb

Browse files
committed
trying redirect
1 parent 8eb8ac4 commit b4793fb

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

_redirects

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/api/* /.netlify/functions/server/api/:splat 200

netlify.toml

+1-6
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,4 @@
33
functions = "functions"
44

55
[functions]
6-
node_bundler = "esbuild"
7-
8-
[[redirects]]
9-
from = "/api/*"
10-
to = "/.netlify/functions/:splat"
11-
status = 200
6+
node_bundler = "esbuild"

0 commit comments

Comments
 (0)