@mcansh/remix-v1-routes
v0.0.3
Published
Continue to use the old nested folders route convention from Remix v1 in your v2 app.
Downloads
2
Readme
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),
};