| # Netlify Configuration File | |
| # Build settings | |
| [build] | |
| # Directory to publish | |
| publish = "src/static" | |
| # Command to run before deployment | |
| command = "echo 'Static site ready for deployment'" | |
| # Redirects and headers | |
| [[redirects]] | |
| from = "/api/*" | |
| to = "/.netlify/functions/:splat" | |
| status = 200 | |
| # Environment variables | |
| [build.environment] | |
| NODE_VERSION = "16" | |
| # Functions directory | |
| [functions] | |
| directory = "netlify/functions" | |