Merge pull request #717 from Dokploy/712-redirect-feature-not-working

fix(dokploy): remove $ on presets redirect
This commit is contained in:
Mauricio Siu
2024-11-17 13:47:46 -06:00
committed by GitHub

View File

@@ -61,7 +61,7 @@ const redirectPresets = [
redirect: { redirect: {
regex: "^https?://(?:www.)?(.+)", regex: "^https?://(?:www.)?(.+)",
permanent: true, permanent: true,
replacement: "https://www.$${1}", replacement: "https://www.${1}",
}, },
}, },
{ {
@@ -70,7 +70,7 @@ const redirectPresets = [
redirect: { redirect: {
regex: "^https?://www.(.+)", regex: "^https?://www.(.+)",
permanent: true, permanent: true,
replacement: "https://$${1}", replacement: "https://${1}",
}, },
}, },
]; ];