Track HiveGrid Cloud planning reference
This commit is contained in:
1 parent
b3d5ea6764
commit
e341c5938a
5784 files changed
+1104929
-3
No files matched your search
@@ -0,0 +1,44 @@
|
||||
import { type RouteConfig } from "@react-router/dev/routes";
|
||||
import { remixConfigRoutes } from "@react-router/remix-config-routes-adapter";
|
||||
import { dirname } from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { createRoutesFromFolders } from "./utils/compat/v1-route-convention";
|
||||
|
||||
const appDirectory = dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
export const defaultIgnoredRouteFilePatterns = [
|
||||
"**/.*",
|
||||
"**/*.css",
|
||||
"**/*.test.ts",
|
||||
"**/*.test.tsx",
|
||||
"**/*.spec.ts",
|
||||
"**/*.spec.tsx",
|
||||
"**/*.server.ts",
|
||||
"**/*.server.tsx",
|
||||
] as const;
|
||||
|
||||
export const defaultDisabledPluginRouteFilePatterns = [
|
||||
"admin/__workflows/**",
|
||||
"admin/crm.tsx",
|
||||
"admin/crm/**",
|
||||
"admin/email-marketing.tsx",
|
||||
"admin/email-marketing/**",
|
||||
"admin/help-desk.tsx",
|
||||
"admin/help-desk/**",
|
||||
"admin/knowledge-base.tsx",
|
||||
"admin/knowledge-base/**",
|
||||
"app.$tenant/__widgets/**",
|
||||
"app.$tenant/sites/**",
|
||||
"help/**",
|
||||
"internal/api/__workflows/**",
|
||||
"mcp/**",
|
||||
] as const;
|
||||
|
||||
const routes: RouteConfig = remixConfigRoutes(async (defineRoutes) => {
|
||||
return createRoutesFromFolders(defineRoutes, {
|
||||
appDirectory,
|
||||
ignoredFilePatterns: [...defaultIgnoredRouteFilePatterns, ...defaultDisabledPluginRouteFilePatterns],
|
||||
});
|
||||
});
|
||||
|
||||
export default routes;
|
||||
Reference in new issue
Block a user