π¦
remix-server-folders
This patch updates the Remix compiler to treat all files in any folder named with .server
extension as server only files. In other words, it acts like you named all the files with *.server.ts
extension.
This just makes it easier to add files to the server folder without having to change the name.
See example. Both methods work.
βββ lib
β βββ test.server.ts
βββ services.server
βββ service.ts
To install, add patch-package
to your project, then copy the patch file for your specific Remix version to the /patches
folder in your project. Also add "postinstall": "patch-package"
to package.json