Replies: 1 comment 1 reply
-
You are trying to serve a SPA, this is a special case of static file serving. Echo provides a middleware for this case. Have a look at https://echo.labstack.com/middleware/static/ You will need to turn HTML5 on and configure your index and your static FS.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
To get Vue 3 app (Vue-router) working with Echo, I have narrow to the problem with Echo route in this guide
https://echo.labstack.com/cookbook/embed-resources/
Vue app can load from "/" endpoint and navigate different page within the page.
When I type URL "http://localhost/xyz" in the browser, it shown "Not Found", does it mean that Echo rewrite is need to load from "/" only then Vue could update the correct page?
For the comparison with Vue and mux is working fine when directly access from "http://localhost/xyz".
Beta Was this translation helpful? Give feedback.
All reactions