From 2f48f690045dd5625252a18b42e4ff6433df9deb Mon Sep 17 00:00:00 2001 From: Nate Maninger Date: Mon, 22 Apr 2024 09:03:32 -0700 Subject: [PATCH] fix: use path instead of filepath for assets --- internal/nextjs/nextjs.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/nextjs/nextjs.go b/internal/nextjs/nextjs.go index b7004710a..b6fc9a31d 100644 --- a/internal/nextjs/nextjs.go +++ b/internal/nextjs/nextjs.go @@ -6,7 +6,6 @@ import ( "io/fs" "net/http" "path" - "path/filepath" "strings" "time" ) @@ -114,9 +113,9 @@ func traverse(fs fs.ReadDirFS, fp string, segments []string, parent *node) error } for _, child := range dir { - childPath := filepath.Join(fp, child.Name()) + childPath := path.Join(fp, child.Name()) name := child.Name() - ext := filepath.Ext(name) + ext := path.Ext(name) name = strings.TrimSuffix(name, ext) if !child.IsDir() && ext != ".html" {