Skip to content

Some examples of calling serverAPI in rsbuild for generating links to files from the bundler #3961

Answered by 9aoy
popuguytheparrot asked this question in Q&A
Discussion options

You must be logged in to vote

By default, scripts and links associated with the current page are automatically inserted into the HTML template. At this time, the compiled HTML template content can be obtained through getTransformedHtml.

When you need to dynamically generate HTML on the server side, you can get manifest information using output.manifest configuration or environments.web.getStats().

Reference https://rsbuild.dev/guide/advanced/ssr#get-manifest

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@popuguytheparrot
Comment options

@9aoy
Comment options

9aoy Dec 2, 2024
Maintainer

Answer selected by popuguytheparrot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants