olivere / vite

Vite backend integration for Go
Other
15 stars 3 forks source link

Handle multi-page app entry points #3

Closed olivere closed 1 month ago

olivere commented 1 month ago

This pull request adds the ability to handle Vite apps with multiple entry points.

You can now set a ViteEntry in the new vite.Handler to specify the entry point to pick up when handling a route in the Go backend.

The examples have been restructured. We now have a examples/basic to illustrated the simplest setup, and examples/multi-page-app for a Vite app with multiple entry points.

Closes #1