11diff --git a/node_modules/@greenwood/plugin-adapter-netlify/src/index.js b/node_modules/@greenwood/plugin-adapter-netlify/src/index.js
2- index 549448a..09dbfdb 100644
2+ index 549448a..03fe986 100644
33--- a/node_modules/@greenwood/plugin-adapter-netlify/src/index.js
44+++ b/node_modules/@greenwood/plugin-adapter-netlify/src/index.js
55@@ -7,8 +7,14 @@ import {
@@ -70,13 +70,14 @@ index 549448a..09dbfdb 100644
7070
7171 // handle user's actual route entry file
7272 await fs.cp(
73- @@ -131,17 +143,20 @@ async function netlifyAdapter(compilation) {
73+ @@ -131,17 +143,21 @@ async function netlifyAdapter(compilation) {
7474 projectDirectory,
7575 );
7676
7777- redirects += `${route} /.netlify/functions/${id} 200
78+ + console.log({ segment, route, id });
7879+ redirects += segment
79- + ? `${segment.pathname} /.netlify/functions/api-${id} 200
80+ + ? `${segment.pathname.replace(`/:${segment.key}/`, `/:${segment.key}`) } /.netlify/functions/api-${id} 200
8081+ `
8182+ : `${route} /.netlify/functions/${id} 200
8283 `;
@@ -94,7 +95,7 @@ index 549448a..09dbfdb 100644
9495
9596 await fs.cp(new URL(outputHref), new URL(`./${id}.js`, outputRoot), { recursive: true });
9697
97- @@ -155,11 +170 ,18 @@ async function netlifyAdapter(compilation) {
98+ @@ -155,11 +171 ,18 @@ async function netlifyAdapter(compilation) {
9899 // https://github.com/netlify/netlify-lambda/issues/90#issuecomment-486047201
99100 await createOutputZip(id, outputType, outputRoot, projectDirectory);
100101
0 commit comments