mirror of
https://github.com/zhigang1992/deployd.git
synced 2026-06-04 19:42:50 +08:00
23 lines
740 B
Markdown
23 lines
740 B
Markdown
Static Resource
|
|
===============
|
|
|
|
The Static Resource allows you host static files from your app, such as HTML, browser JavaScript, CSS, images, and videos.
|
|
|
|
Accessing files
|
|
---------------
|
|
|
|
Send a GET request with the filename to load the raw file. This is how browsers request pages and files by default.
|
|
|
|
GET /files/bg.jpg
|
|
|
|
Folders
|
|
-------
|
|
|
|
If you prefer to have seperate folders for Javascript, CSS, and images, create multiple Static Resources at the paths you want to store the files.
|
|
|
|
You can also give a Static Resource an empty path ("/"). This will assign it to the root of your app.
|
|
|
|
Home page
|
|
---------
|
|
|
|
If a Static Resource receives a request without a filename, it will automatically redirect to "index.html" if available. |