Skip to main content

Module embed

Module embed 

Source
Expand description

Files compiled into the production binary.

Release builds embed next-rust.toml, public/, assets/ and client/ (see next-rust-build), so the server binary is the only file a deployment needs. Development builds leave this empty and read from disk.

Structs§

Embedded
Everything a release binary carries with it.
EmbeddedFile
One embedded file. path is relative to its directory and uses /.

Functions§

find
Find a file by URL path using the same rules as disk lookups: segments are percent-decoded and ./.., hidden files and separators are rejected.