I’m having an issue after publishing a blazor-wasm project - and I’m not sure if I am missing something with regards to the ServiceStack pre-rendering, or if it is something more general that I am missing. I hope you guys can help
The pre-rendering tasks are performed by the included GitHub Actions, i.e. they wont be run when you publish a project, so either the Prerender Tasks will need to be run locally before publishing the project with the published package containing the content in the /prerender folder or the pre-render functionality would need to be removed from the template.
ok - one last issue… if I run the pre-render tests and ensure that the “prerender” folder is copied with the output when publishing, the 404 error disappears…however - these errors still persist:
This looks it’s calling its API using an incorrect host name, GitHub Actions publishes the project using the command:
Which tells it what DEPLOY_API and DEPLOY_CDN to use which executes these pre-publish tasks to update the necessary host names in the different configs:
If you’re not using a CDN you can omit /p:DEPLOY_CDN, but I’d execute the same publish tasks so the correct configuration is updated, otherwise you’d need to update them manually.
Or maybe it’s just that the ApiBaseUrl hasn’t been properly configured in your appsettings: