Skip to content

Commit d00bf5e

Browse files
gatsbybotpieh
andauthored
fix: don't treat timestamps as dynamic paths (#39340) (#39341)
(cherry picked from commit 485fd85) Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com>
1 parent 7d1a53a commit d00bf5e

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)