6c624ec06c
* Add the "BlazorWasmPreRendering.Build" package reference * Cut out the service configuration to static method - it is required for static pre-rendering * Specify locale for pre-rendering to 'en-US' explicitly - otherwise, an exception, "JsonException: '<' is an invalid start of a value" will happen. - because there aren't "*.en.json" files, there are "*.en-US.json" files. * Avoid doing "NavigateTo" during pre-rendering - otherwise, the "NavigationException" will happen. * Move caches of the DemoService to an individual singleton service. - otherwise, a disposed HttpClient object will cause the "ObjectDisposedException" on a Blazor Server - because a static field of a scoped service captures the HttpClient object that will disposed of after that scoped service has expired. * Make it to be pre-rendered the zh-CN locale contents too * Fix the invalid URL in the FAQ document - both en-US and zh-CN. - this caused 404 Not Found and a crash during the pre-rendering process. * Change the pre-rendering output style to '{path}/{to}.html'. - from the '{path}/{to}/index.html' style. * Make the description part of the component pages be included in the static pre-rendering. - To achieve that, load a DemoComponent object in the `OnIntializedAsync` life cycle method. - and make sure to avoid invoking `NavigationTo` in the `OnIntializedAsync` life cycle method. |
||
---|---|---|
.. | ||
assets | ||
contributing.en-US.md | ||
contributing.zh-CN.md | ||
faq.en-US.md | ||
faq.zh-CN.md | ||
getting-started.en-US.md | ||
getting-started.zh-CN.md | ||
i18n.en-US.md | ||
i18n.zh-CN.md | ||
introduce.en-US.md | ||
introduce.zh-CN.md | ||
localization.en-US.md | ||
localization.zh-CN.md | ||
member-path-helper.en-US.md | ||
member-path-helper.zh-CN.md | ||
nightly-build.en-US.md | ||
nightly-build.zh-CN.md | ||
test-kit.en-US.md | ||
test-kit.zh-CN.md |