Use `.secret.[ext]` files for server-only code
mainYou can create files that are strictly server-side by using the [filename].secret.[ext] naming convention (e.g., database.secret.ts).
Behavior
- Build-time: These files are removed from the client bundle entirely.
- Client-side Imports: If a client-side file imports from a
.secret.file, the exports will be provided as stubs withundefinedvalues.
Warning: Do not rely on the name of an exported variable for security, as the variable name itself is still visible in the client bundle, even if its value is undefined.