netlify-nuxt-toolbox/netlify.toml
Tatyana 6374ff66aa
Tn/add cypress (#47)
* added cypress, updated toml with cypress plugin, and created testing for the form

* Update cypress/e2e/form.cy.js

Co-authored-by: Prince Wilson <maxcell.wilson@gmail.com>

Co-authored-by: Prince Wilson <maxcell.wilson@gmail.com>
2022-06-10 15:40:07 -05:00

28 lines
889 B
TOML

## This is the configuration file for Netlify
## https://docs.netlify.com/configure-builds/file-based-configuration/
[build]
command = "npm run generate" # how to build your project
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]]
from = "/api/*" # simplify all calls to serverless functions
to = "/.netlify/functions/:splat" # all function calls will go to this path
status = 200 # ok code
force = true # ensure to always redirect
[functions]
node_bundler = "esbuild"
[[plugins]]
package = "netlify-plugin-cypress"
[plugins.inputs.postBuild]
enable = true
[plugins.inputs]
enable = false