Skip to content

Commit

Permalink
feat(libserver): making sure configuration props and globals are not …
Browse files Browse the repository at this point in the history
…nil before configuring in ServerWithSveltePage.
  • Loading branch information
razshare committed Jan 14, 2025
1 parent 8632d75 commit 945e103
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,9 @@ func ServerWithSveltePage(self *Server, pattern string, pageId string, configure
EmbeddedFileOrElse(request, response, func() {
FileOrElse(request, response, func() {
configuration := &SveltePageConfiguration{
Render: ModeFull,
Render: ModeFull,
Props: map[string]interface{}{},
Globals: map[string]v8go.FunctionCallback{},
}

configure(request, configuration)
Expand Down

0 comments on commit 945e103

Please sign in to comment.