diff --git a/src/node/plugins/dynamicRoutesPlugin.ts b/src/node/plugins/dynamicRoutesPlugin.ts index 9d0d1dbd..11f4b64e 100644 --- a/src/node/plugins/dynamicRoutesPlugin.ts +++ b/src/node/plugins/dynamicRoutesPlugin.ts @@ -132,7 +132,10 @@ export const dynamicRoutesPlugin = async ( // we use a special injection syntax so the content is rendered as // static local content instead of included as runtime data. if (content) { - baseContent = baseContent.replace(//, content) + baseContent = baseContent.replace( + //, + content.replace(/\$/g, '$$$') + ) } // params are injected with special markers and extracted as part of