config (#2): add esbuild configuration for serverless functions

This commit is contained in:
Ben Hong 2022-02-22 17:13:34 -08:00
parent 5fd5e9e7bf
commit 06bd1e1dff

View File

@ -1,4 +1,4 @@
## This is the configuration file for Netlify ## This is the configuration file for Netlify
## https://docs.netlify.com/configure-builds/file-based-configuration/ ## https://docs.netlify.com/configure-builds/file-based-configuration/
[build] [build]
@ -15,3 +15,6 @@
to = "/.netlify/functions/:splat" # all function calls will go to this path to = "/.netlify/functions/:splat" # all function calls will go to this path
status = 200 # ok code status = 200 # ok code
force = true # ensure to always redirect force = true # ensure to always redirect
[functions]
node_bundler = "esbuild"