Skip to content
Discussion options

You must be logged in to vote

The issue is that your routes don't match the URL. Remix doesn't support URL rewriting.

However, you could update your routes so it has the extra top-level paths as part of the config.

There are a couple of ways to do that. The first is to just update your routes to add those folders directly: routes/deployment.my-portal-ui._index.tsx

Granted, that only works if those top-level paths are static.

The other option is to use my package remix-flat-routes. It's a superset of the new v2 flat routes convention. It includes some enhancements, with one of them being the ability to set the basePath. This will automatically add the basePath to all the top level routes in your app.

const { flatRoutes } 

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@densekernel
Comment options

@kiliman
Comment options

Answer selected by MichaelDeBoey
Comment options

You must be logged in to vote
2 replies
@kiliman
Comment options

@srivastava-abhijeet
Comment options

Comment options

You must be logged in to vote
1 reply
@brophdawg11
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants