fix(SW-449): Updated next.config date rule

This commit is contained in:
Pontus Dreij
2024-11-08 15:13:24 +01:00
parent 0294a80eab
commit 42e5da1ee0
4 changed files with 9 additions and 12 deletions

View File

@@ -137,7 +137,7 @@ const nextConfig = {
{
key: "fromDate",
type: "query",
value: "^([12]\\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01]))$",
value: "^([12]\\d{3}-(0[1-9]|1[0-2])-([1-9]|[12]\\d|3[01]))$",
},
],
permanent: false,
@@ -169,7 +169,7 @@ const nextConfig = {
{
key: "toDate",
type: "query",
value: "^([12]\\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01]))$",
value: "^([12]\\d{3}-(0[1-9]|1[0-2])-([1-9]|[12]\\d|3[01]))$",
},
],
permanent: false,