Skip to content

Commit 03c29de

Browse files
authored
[docs] add code comment to Netlify adapter (#4298)
1 parent 818b489 commit 03c29de

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/adapter-netlify/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ export default function ({ split = false } = {}) {
6969
builder.createEntries((route) => {
7070
const parts = [];
7171

72+
// Netlify's syntax uses '*' and ':param' as "splats" and "placeholders"
73+
// https://docs.netlify.com/routing/redirects/redirect-options/#splats
7274
for (const segment of route.segments) {
7375
if (segment.rest) {
7476
parts.push('*');

0 commit comments

Comments
 (0)