Remix Server Folders screenshot

Remix Server Folders

Author Avatar Theme by Kiliman
Updated: 27 Jul 2022
14 Stars

Patch to add .server extension to folder in Remix

Overview

The latest update to the Remix compiler introduces a significant enhancement for developers working with server files. By recognizing all files in directories with a .server designation as server-only files, this patch simplifies organization within a project. This means you don’t have to adhere to the strict naming convention of .server.ts for every file, making it much easier to manage your server-side code.

This improvement streamlines the development process, allowing for a cleaner and more intuitive folder structure while maintaining the functionality you expect from the Remix framework. With just a few installation steps, you can integrate this patch into your workflow seamlessly.

Features

  • Flexible File Management: Treats all files within .server folders as server-only, enabling easier file organization.
  • Simplified Naming Conventions: Eliminates the need to rename files to .server.ts, giving you freedom in file naming.
  • Easy Integration: Requires minimal setup—just add patch-package and the corresponding patch file to your project.
  • Improved Development Workflow: Enhances the development experience by reducing friction related to file naming and structure.
  • Compatibility: Works well with existing Remix projects without significant changes to your codebase.
  • Post-install Automation: “postinstall” script automates the patch application process, ensuring consistent setup across installations.