mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-08-28 09:24:05 +00:00
Enhance formatting in howToStaticallyHost.md
Updated formatting for code snippets and improved clarity.
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
### How to statically host Fermi
|
||||
Fermi due to its service worker, will technically work without any of this, but here's what you need to keep in mind for statically hosting it.
|
||||
### I will assume the following
|
||||
* 404.html will be used for 404 responses
|
||||
* index.html will be used when in that directory
|
||||
* `404.html` will be used for 404 responses
|
||||
* `index.html` will be used when in that directory
|
||||
* stuff like `/app` will just use the html file at `/app.html`
|
||||
|
||||
Here's the other thing you need to do:
|
||||
|
||||
Firstly you'll need to build Fermi like normal and host out the ./dist/webpage directory.
|
||||
Firstly you'll need to build Fermi like normal and host out the `./dist/webpage` directory.
|
||||
|
||||
You need to make some rewrites, not redirects from these addresses:
|
||||
* `/channels/*` -> `/app.html`
|
||||
@@ -16,4 +16,4 @@ You need to make some rewrites, not redirects from these addresses:
|
||||
|
||||
Other than these three rewrites, everything else should work as expected!
|
||||
|
||||
(the reason why the service worker can fix this is due to it doing the rewrites on the client side)
|
||||
<sub><sup>*(the reason why the service worker can fix this is due to it doing the rewrites on the client side)*</sup></sub>
|
||||
|
||||
Reference in New Issue
Block a user