Skip to content

Commit

Permalink
redirect the path in netlify.toml
Browse files Browse the repository at this point in the history
Signed-off-by: YoungHypo <haiboyang@smail.nju.edu.cn>
  • Loading branch information
YoungHypo committed Aug 24, 2024
1 parent fef5f1c commit 16ef055
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -251,4 +251,4 @@ src/dashboard/lambda/mock/index.js

# Local Netlify folder
.netlify
src/dashboard/deno.lock
deno.lock
8 changes: 8 additions & 0 deletions src/dashboard/netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[build]
functions = "lambda"

[[redirects]]
from = "/*"
to = "/.netlify/functions/:splat"
status = 200

0 comments on commit 16ef055

Please sign in to comment.