*.server.ts extension


While not always necessary, you can use *.server.ts on file names to force them out of client bundles. Usually the compiler is fine, but if you've got a server dependency with module side effects, move it into a your-name.server.ts file to ensure it is removed from client bundles.

Refer to the Route Module section in the sidebar for more information.

Docs and examples licensed under MIT