Websites on Dfinity

How can we create and host websites on Dfinity?

Right now this is most easily accomplished using webpack. Check out the phone book or superheroes example.


Sorry I’m not a technical person
I think i posted here by mistake
Is there someone could help me build websites on Dfinity?

Are you familiar with HTML/CSS/JavaScript? What exactly do you want to build?

I’m familiar with HTML

Any guide how to host already built react website on dfinity?

This should get you going!


I’m sorry if asking the same questions someone asked before already.
So, I have this folder structure:


Here is the content of dfx.json

“canisters”: {
"www: {
“type”: “assets”,
“source”: [“public”]

When I try to deploy this project on local network (started with “dfx start”), I don’t get any errors on “dfx deploy”

But if I try to access then my HTML page, I get this error from accessing HTTP://

An error happened:

async*[email protected]
[email protected]
[email protected]

How can I debug what is wrong here? My HTML page loads without js console errors in the browser.

upd: found this comment What are front end canisters? - #5 by kpeacock, is it still valid?

Replying to my own message, I was using old stable version 0.6.26 of dfx. But with latest 0.7.0-beta.8 everything works as expected

1 Like

I wish I had read your note earlier. Thank you. My deployment now works as well.