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

Feat: DiracX-Web port environment variable and node modules size increase #101

Merged

Conversation

Loxeris
Copy link
Member

@Loxeris Loxeris commented May 27, 2024

This PR includes two changes:

  • Port Configuration: Updates the port configuration for diracx-web to use an environment variable instead of the -p argument.
  • Node_Modules Size Limit: Increases the size limit for the node_modules directory.

These changes are necessary as diracx-web transitions to a monorepo structure, making argument passing through Lerna inefficient, and the increased size limit supports the growing dependencies in the monorepo.

The -p argument is specific to the Next.js server and is not applicable to the new library, so passing it would make the command look something like:

lerna run dev --scope diracx-web-components & lerna run dev --scope diracx-web --

Instead of the simpler and more efficient:

lerna run dev --parallel

Additionally, running the library script in the background isn't a good idea because a Next.js error wouldn't stop it, leading to potential issues.

Integration tests now fail without these changes but pass with them, as the dev node script no longer supports the -p argument. Here are the test results:
Test without these changes,
Test with these changes

@Loxeris Loxeris force-pushed the feat_diracx-web-port-env-&-node-modules-size branch from 34127c0 to f9742f8 Compare July 16, 2024 12:30
@aldbr aldbr marked this pull request as ready for review July 16, 2024 12:40
@aldbr
Copy link
Contributor

aldbr commented Jul 16, 2024

Can you rebase your PR to have a single commit please?

feat(diracx-web): increase node modules size limit

feat(diracx-web): environment variables for port configuration

feat(diracx-web): future proof node_module size limit
@Loxeris Loxeris force-pushed the feat_diracx-web-port-env-&-node-modules-size branch from f9742f8 to d2fc6e1 Compare July 16, 2024 12:51
@aldbr aldbr merged commit e37b2f2 into DIRACGrid:master Jul 17, 2024
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants