adds netlify.toml build setup
This commit is contained in:
parent
da32488d57
commit
131835a28a
23
netlify.toml
23
netlify.toml
@ -1,12 +1,17 @@
|
|||||||
# 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/
|
||||||
|
|
||||||
# Learn more about redirects here
|
[[build]]
|
||||||
# https://docs.netlify.com/routing/redirects/#syntax-for-the-netlify-configuration-file
|
command = "npm run generate" # how to build your project
|
||||||
# https://docs.netlify.com/routing/redirects/redirect-options/
|
functions = "netlify/functions" # where Netlify Functions live
|
||||||
|
publish = "dist" # where the built project lives
|
||||||
|
|
||||||
|
## Learn more about redirects here
|
||||||
|
## https://docs.netlify.com/routing/redirects/#syntax-for-the-netlify-configuration-file
|
||||||
|
## https://docs.netlify.com/routing/redirects/redirect-options/
|
||||||
|
|
||||||
[[redirects]]
|
[[redirects]]
|
||||||
from = "/api/*" # simplify all calls to serverless functions
|
from = "/api/*" # simplify all calls to serverless functions
|
||||||
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user