Closed coldagofee closed 9 months ago
@coldagofee The routes directory should always end with src/pages
as a convention, this option was introduced for certain projects that requires a certain nested structure as in full stack non-js projects or non-workspace monorepo tooling.
You can replace the config directory with ./some-directory/src/pages/...
, also you'd need to have a custom ./some-directory/src/routes.tsx
similar to ./client/src/routes.tsx
to scan the routes correctly based on the custom path.
@oedotme oooh thanks for the explaination
default config
it working as expected stackblitz default config
router.ts:
custom path config
i followed this example, but my app just showing blank page. stackblitz custom config
vite.config.ts:
router.ts: