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

bump nextJS to v15 #4630

Merged
merged 3 commits into from
Jan 15, 2025
Merged

bump nextJS to v15 #4630

merged 3 commits into from
Jan 15, 2025

Conversation

Lendemor
Copy link
Collaborator

No description provided.

@adhami3310
Copy link
Member

for reviewers, the CI barely runs any macos tests, so it would be great if you can verify this works on your macos machine on reflex-web and other repos of similar size

@Lendemor
Copy link
Collaborator Author

Lendemor commented Jan 13, 2025

for reviewers, the CI barely runs any macos tests, so it would be great if you can verify this works on your macos machine on reflex-web and other repos of similar size

To add to this, I ran reflex-web locally with reflex run and reflex export on my MacOS.

@Alek99
Copy link
Member

Alek99 commented Jan 13, 2025

Testing this branch with the sandbox to see if it improves anything

def _compile_package_json():
return templates.PACKAGE_JSON.render(
scripts={
"dev": constants.PackageJson.Commands.DEV,
"dev": constants.PackageJson.Commands.DEV + _turbopack_flag(),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one thing i'm hesitant about here is setting/resetting the environment variable is not sufficient to rewrite the package.json, that only happens during init

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i have looked into it, there's no way to do it with config files, so package.json is the only way (unless you want to make package.json read from environment as well, but that seems cursed)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it's unreasonable to expect users to re-init when changing how they want to run the frontend dev server, because it's not a flag you'll change frequently.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@masenf do we have alternatives for this or shall we merge this as is?

The only thing possible to do here is to log last value of this flag and if it changes we regenerate package.json

@adhami3310 adhami3310 marked this pull request as ready for review January 14, 2025 02:41
@masenf masenf merged commit 9fe8e6f into main Jan 15, 2025
41 checks passed
@masenf masenf deleted the lendemor/try_nextjs_15_again branch January 15, 2025 22:20
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.

4 participants