Skip to content

Commit

Permalink
chore: disable v1 routing
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed Jun 24, 2024
1 parent 0efb85b commit 0fc2dc5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion themes/book/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
"@remix-run/dev": "^2.2.0",
"@remix-run/eslint-config": "^2.2.0",
"@remix-run/serve": "^2.2.0",
"@remix-run/v1-route-convention": "^0.1.4",
"@tailwindcss/typography": "^0.5.9",
"@types/node-fetch": "^2.6.4",
"@types/react": "^18.2.24",
Expand Down
5 changes: 0 additions & 5 deletions themes/book/vite.config.dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { installGlobals } from '@remix-run/node';
import tsconfigPaths from 'vite-tsconfig-paths';
import { envOnlyMacros } from 'vite-env-only';

import { createRoutesFromFolders } from '@remix-run/v1-route-convention';

installGlobals();

Expand All @@ -15,10 +14,6 @@ export default defineConfig({
serverBuildFile: 'api/index.js',
ignoredRouteFiles: ['**/.*'],
serverModuleFormat: 'esm',
routes(defineRoutes) {
// uses the v1 convention, works in v1.15+ and v2
return createRoutesFromFolders(defineRoutes);
},
}),
tsconfigPaths(),
envOnlyMacros(),
Expand Down

0 comments on commit 0fc2dc5

Please sign in to comment.