Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
README.md | 2023-06-05 | 387 Bytes | |
Static Directory In SSR .tar.gz | 2023-06-05 | 305.5 kB | |
Static Directory In SSR source code.tar.gz | 2023-06-05 | 305.5 kB | |
Static Directory In SSR source code.zip | 2023-06-05 | 338.8 kB | |
Static Directory In SSR.zip | 2023-06-05 | 338.8 kB | |
Totals: 5 Items | 1.3 MB | 0 |
Since HappyX v1.1.0 You can declare static directories with two ways ✌
URL Path Is Static Dir 🎈
:::nim
serve(...):
# /myDir/subdir/file.txt returns /myDir/subdir/file.txt
staticDir "myDir"
Custom URL Path ✨
:::nim
serve(...):
# /myPath/subdir/file.txt returns /myDir/subdir/file.txt
staticDir "/myPath" -> "myDir"