@mcansh/remix-v1-routes
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

remix-v1-routes

Continue to use the old nested folders route convention from Remix v1 in your v2 app.

Usage

const { defineConventionalRoutes } = require("@mcansh/remix-v1-routes");

/** @type {import('@remix-run/dev').AppConfig} */
module.exports = {
  appDirectory: "app",
  assetsBuildDirectory: "public/build",
  serverBuildPath: "build/index.js",
  publicPath: "/build/",
  future: {
    v2_routeConvention: true,
  },

  ignoredRouteFiles: ["**/*"],
  routes: (defineRoutes) => defineConventionalRoutes("app", defineRoutes),
};

Readme

Keywords

none

Package Sidebar

Install

npm i @mcansh/remix-v1-routes

Weekly Downloads

3

Version

0.0.3

License

MIT

Unpacked Size

347 kB

Total Files

26

Last publish

Collaborators

  • mcansh