Skip to content

Commit 2cd77d1

Browse files
committed
fix: don't treat timestamps as dynamic paths (#39340)
(cherry picked from commit 485fd85)
1 parent 7d1a53a commit 2cd77d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/gatsby-adapter-netlify/src/pretty-urls.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export function createStaticAssetsPathHandler(): {
5555
let isDynamic = false
5656
// dynamic routes syntax use characters that are reserved in a lot of filesystems
5757
// so if route is dynamic we should normalize filepath
58-
if (routePath.includes(`:`) || routePath.includes(`*`)) {
58+
if (routePath.includes(`/:`) || routePath.includes(`/*`)) {
5959
routePath = normalizeDynamicRoutePath(routePath)
6060
isDynamic = true
6161
}

0 commit comments

Comments
 (0)