Skip to content

Adding Web3 Hosting example of IPFS _redirects file for most use cases #147

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

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion docs/tools/web3-hosting.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ If you want to add more specific redirections, you must create a `_redirects` fi
- <b>Simple website</b>: It should be located in the root folder.
- <b>Framework-based website</b>: it should be located in the `public` folder. At build time, it will be moved at the root.

A simple default that should work for most websites is to redirect all the traffic to the root using a `200` code (rewrite that doesn't change the URL in the visitor's browser) with:
```txt
/* /index.html 200
```

Check out the IPFS documentation below for more details.

<b>Useful Links</b>
Expand All @@ -116,7 +121,7 @@ Check out the IPFS documentation below for more details.

### Backend Support

In order to add a backend to your website and to make it a complete fullstack dapp, there are currently 2 different approchs you can implement:
In order to add a backend to your website and to make it a complete fullstack dapp, there are currently 2 different approaches you can implement:

- [Deploy your backend as a function](webconsole/write_your_code.md) using our serverless solution.
- [Deploy your instance](../computing/index.md) then setup your environment and expose your APIs to the internet.
Expand Down
Loading