Skip to content

Commit

Permalink
fix: use path instead of filepath for assets
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger authored and alexfreska committed Apr 22, 2024
1 parent 2bdd07c commit 2f48f69
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/nextjs/nextjs.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"io/fs"
"net/http"
"path"
"path/filepath"
"strings"
"time"
)
Expand Down Expand Up @@ -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" {
Expand Down

0 comments on commit 2f48f69

Please sign in to comment.