Yea sure!
I added the redirects in like this, I never touch netlify.toml so It’s causing an error.
[build]
publish = "_site"
command = "eleventy"
# REDIRECT and HEADERS examples
# Redirect rule example
# For more information see:- https://www.netlify.com/docs/netlify-toml-reference/
#[[redirects]]
# from = "/*"
# to = "/blog/:splat"
# Two-step role-gate with fallback to home page
/rates/* 200! Role=rdm,admin
/rates/* / 302!
# The default HTTP status code is 301, but you can define a different one e.g.
# status = 302
# Headers rule example
# For more information see:- https://www.netlify.com/docs/netlify-toml-reference/
#[[headers]]
# Define which paths this specific [[headers]] block will cover.
# for = "/*"
#[headers.values]
# X-Frame-Options = "DENY"
# X-XSS-Protection = "1; mode=block"
# Content-Security-Policy = "frame-ancestors https://www.facebook.com"
# Redirects and headers are GLOBAL for all builds – they do not get scoped to
# contexts no matter where you define them in the file.
# For context-specific rules, use _headers or _redirects files, which are
# applied on a PER-DEPLOY basis.
Here is the error
◈ Reloading redirect rules from [ '_site\\_redirects', 'netlify.toml' ]
[SyntaxError: When resolving config file C:\Users\kyles\Desktop\moonface\netlify.toml:
Could not parse configuration file
Expected "#", "'", "[", "\"", "\n", "\r", [ \t], [A-Za-z0-9_\-] or end of input but "/" found.] {
expected: [
{ type: 'literal', value: '#', description: '"#"' },
{ type: 'literal', value: "'", description: `"'"` },
{ type: 'literal', value: '[', description: '"["' },
{ type: 'literal', value: '"', description: '"\\""' },
{ type: 'literal', value: '\n', description: '"\\n"' },
{ type: 'literal', value: '\r', description: '"\\r"' },
{ type: 'class', value: '[ \\t]', description: '[ \\t]' },
{
type: 'class',
value: '[A-Za-z0-9_\\-]',
description: '[A-Za-z0-9_\\-]'
},
{ type: 'end', description: 'end of input' }
],
found: '/',
offset: 293,
line: 14,
column: 1,
type: 'userError'
}
[SyntaxError: When resolving config file C:\Users\kyles\Desktop\moonface\netlify.toml:
Could not parse configuration file
Expected "#", "'", "[", "\"", "\n", "\r", [ \t], [A-Za-z0-9_\-] or end of input but "/" found.] {
expected: [
{ type: 'literal', value: '#', description: '"#"' },
{ type: 'literal', value: "'", description: `"'"` },
{ type: 'literal', value: '[', description: '"["' },
{ type: 'literal', value: '"', description: '"\\""' },
{ type: 'literal', value: '\n', description: '"\\n"' },
{ type: 'literal', value: '\r', description: '"\\r"' },
{ type: 'class', value: '[ \\t]', description: '[ \\t]' },
{
type: 'class',
value: '[A-Za-z0-9_\\-]',
description: '[A-Za-z0-9_\\-]'
},
{ type: 'end', description: 'end of input' }
],
found: '/',
offset: 293,
line: 14,
column: 1,
type: 'userError'
}
C:\Users\kyles\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\netlify-redirector\lib\redirects.js:116
throw ex;
^
abort({"message":"When resolving config file C:\\Users\\kyles\\Desktop\\moonface\\netlify.toml:\nCould not parse configuration file\nExpected \"#\", \"'\", \"[\", \"\\\"\", \"\\n\", \"\\r\", [ \\t], [A-Za-z0-9_\\-] or end of input but \"/\" found.","expected":[{"type":"literal","value":"#","description":"\"#\""},{"type":"literal","value":"'","description":"\"'\""},{"type":"literal","value":"[","description":"\"[\""},{"type":"literal","value":"\"","description":"\"\\\"\""},{"type":"literal","value":"\n","description":"\"\\n\""},{"type":"literal","value":"\r","description":"\"\\r\""},{"type":"class","value":"[ \\t]","description":"[ \\t]"},{"type":"class","value":"[A-Za-z0-9_\\-]","description":"[A-Za-z0-9_\\-]"},{"type":"end","description":"end of input"}],"found":"/","offset":293,"line":14,"column":1,"name":"SyntaxError","type":"userError"}) at Error
at jsStackTrace (C:\Users\kyles\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\netlify-redirector\lib\redirects.js:1070:13)
at stackTrace (C:\Users\kyles\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\netlify-redirector\lib\redirects.js:1087:12)
at process.abort (C:\Users\kyles\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\netlify-redirector\lib\redirects.js:8502:44)
at process.emit (events.js:315:20)
at processEmit [as emit] (C:\Users\kyles\AppData\Roaming\npm\node_modules\netlify-cli\node_modules\signal-exit\index.js:161:32)
at processPromiseRejections (internal/process/promises.js:245:33)
at processTicksAndRejections (internal/process/task_queues.js:94:32)
(Use `node --trace-uncaught ...` to show where the exception was thrown)