vitedge
vitedge copied to clipboard
Skip props request for static routes
Right now, a props handler file needs to export a handler function. It should be possible to omit this handler and only export cache options. In this scenario, the route can skip the props request in SPA mode while still having access to cache options.
Alternatives:
- Keep
functions/props/routeName.jsnaming and check the content to see whetherhandlerfunciton is exported or not. - Use
functions/props/routeName.static.jsnaming. - Use
functions/props/routeName.jsonnaming. -- It seems nice but it wouldn't have type auto completion.