-
-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(docs) Request for elaboration on usage docs for defineEntries
#921
Comments
Oh I was also wondered waku/packages/waku/src/lib/builder/build.ts Line 750 in 901594c
How about explain API descriptions like what each parameter work for or the interaction of parameters( |
I saw that |
We are in the middle of refactoring. |
@tylersayshi I'm not sure if this is a good first issue anymore. |
#921 `handleBuild` is very complicated.
If
import { defineConfig } from 'waku/config';
export default defineConfig({
middleware: () => [
// context, dev-server and handler are the default middleware if not defined
import('waku/middleware/context'),
import('waku/middleware/dev-server'),
import('waku/middleware/handler'),
// fallback required if SSR is not enabled
import('waku/middleware/fallback'),
],
}); The default handlers used by the router can be found in waku/router/define-router. examples/12_nossr/src/entries.ts shows how it is possible to use |
Nice! Feel free to send a PR please. I'm not sure if we should write about "router" and "managed mode" in minimal-api docs. Should there be another doc? |
👍 I am backlogged, but I will get around it.
Good idea to have another doc for managed mode and the filesystem router. The minimal-api docs can point out that managed mode is the default behavior and link to the other doc that explains. |
defineEntries
is a fn call to define how to render, build, and configure the ssr for your waku app.Some initial usage docs live here: https://github.com/dai-shi/waku/blob/main/docs/minimal-api.mdx
It would be really helpful for someone new to look through how the initial usages of
defineEntries
are used, then summarize some info in a docs entry for this function.The text was updated successfully, but these errors were encountered: