remix-modules
TypeScript icon, indicating that this package has built-in type declarations

0.0.1-alpha.5 • Public • Published

Remix Modules

Scale your remix app with modules.

[!WARNING] This is a experimental package and is not ready for production use.

What is a module?

A module is a remix app that can be mounted into another remix app.

.
├── modules
│   └── blog <=== this is a module
│       ├── routes
│       └── root.tsx
├── routes
└── root.tsx

Installation

npm install remix-modules

Configuration

Update your remix.config.js file and use the custom routes config option.

const { remixModules } = require('remix-modules');

/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
  routes: async () => {
    const modules = remixModules();
    await modules.mount('modules/blog', '/blog'); // mount the blog module to /blog
    return modules.routes();
  }
};

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i remix-modules

Weekly Downloads

185

Version

0.0.1-alpha.5

License

MIT

Unpacked Size

11.5 kB

Total Files

13

Last publish

Collaborators

  • yesmeck