Skip to content
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

How to work with the existing project? #12

Open
ElderJames opened this issue Aug 16, 2024 · 1 comment
Open

How to work with the existing project? #12

ElderJames opened this issue Aug 16, 2024 · 1 comment

Comments

@ElderJames
Copy link

ElderJames commented Aug 16, 2024

Hello @krompaco , I want to generate a static site with my project. And it need runing the interactive components on wasm.

The site is :
https://github.com/ant-design-blazor/ant-design-blazor/tree/master/site/AntDesign.Docs.Wasm

Thank you.

@krompaco
Copy link
Owner

krompaco commented Sep 21, 2024

Hi @ElderJames and sorry for the late reply!

Haven't tested this but I believe it's doable.

For WASM you need to have a separate project of course...
And then, since the Record Collector way of generating files does not involve any dotnet publish command, you would publish your WASM project independently and place it in way the works with the generated static site. You might also need to place some files in the Web-project's wwwroot folder so that they correspond with the HTML-file in your Blazor WASM project/publish-output.

This might provide some help if you aim to host on Netlify:
https://swimburger.net/blog/dotnet/how-to-deploy-blazor-webassembly-to-netlify

It should be more straight forward to initiate Blazor WASM components if you run the site in ASP.NET mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants