Download Latest Version v4.5.2 source code.tar.gz (2.7 MB)
Email in envelope

Get an email when there's a new version of happyx

Home / v1.1.0
Name Modified Size InfoDownloads / 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"
Source: README.md, updated 2023-06-05