React-router v7 always uses ./dist/development/index.js what's the /production/index.js for? #13186
Unanswered
scottdickerson
asked this question in
Q&A
Replies: 1 comment
-
Found the relevant PR: #12437 Unfortunately, the PR doesn't offer any alternative to enable production build. 😟 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We've been having performance and scalability issues in our Production workloads and poking around in the
react-router
package I noticed a./dist/development/index.js
and./dist/production/index.js
I noticed in our logs that the react-router/dist/development/index.js is always used even if I build and run in production mode
This is unlike
react
where the dev or prod version is picked based on that environment variable.Is there a supported way to use the
./dist/production/index
instead of the./dist/development/index.js
file? I tried aliasing it with vite.config but the package.json prevented me from directly referencing it.Beta Was this translation helpful? Give feedback.
All reactions