Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove next and react from dependencies #149

Open
Chimochikhin opened this issue Sep 5, 2024 · 1 comment
Open

Remove next and react from dependencies #149

Chimochikhin opened this issue Sep 5, 2024 · 1 comment

Comments

@Chimochikhin
Copy link

Chimochikhin commented Sep 5, 2024

in version 3.2.1 you have
"dependencies": { "next": "^14", "react": "^18" },
That how it looks in my application

yarn list next

Please move
"next": "^14", "react": "^18"

To devDependencies and peerDependencies

@k4rli
Copy link

k4rli commented Oct 17, 2024

This should definitely be fixed. Currently next-runtime-env is very heavy, especially in CI without cached node_modules

My nextjs app dependencies sorted by size; it's massive for what it does:

❯ du -h my-project/node_modules --max-depth=1 | sort -h                                                                                                       06:34:31 
...
16M     my-project/node_modules/@typescript-eslint
22M     my-project/node_modules/@babel
22M     my-project/node_modules/typescript
46M     my-project/node_modules/@ant-design
82M     my-project/node_modules/antd
103M    my-project/node_modules/next
277M    my-project/node_modules/@next
378M    my-project/node_modules/next-runtime-env
1,1G    my-project/node_modules

I'm using:

// package.json
"next-runtime-env": "3.2.2",  
"next": "14.2.5",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants