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(remix): Update start script for built-in Remix servers. #604

Merged
merged 5 commits into from
Jun 21, 2024

Conversation

onurtemizkan
Copy link
Collaborator

@onurtemizkan onurtemizkan commented Jun 21, 2024

Updates start script in package.json with NODE_OPTIONS="--import ..." when the server instrumentation file is not imported inside server file (or server file does not exist).

Copy link

github-actions bot commented Jun 21, 2024

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 85738ae

@onurtemizkan onurtemizkan force-pushed the onur/remix-update-start-script branch from bf04100 to 79a3a3a Compare June 21, 2024 14:34
@onurtemizkan onurtemizkan requested a review from AbhiPrasad June 21, 2024 14:36
@onurtemizkan onurtemizkan marked this pull request as ready for review June 21, 2024 14:37

const startCommand = packageJson.scripts.start;

packageJson.scripts.start = `NODE_OPTIONS='--import ./${instrumentationFile}' ${startCommand}`;
Copy link
Member

Choose a reason for hiding this comment

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

Should we try to detect for usage of node xxx or remix-serve xxx before replacing the start command?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Updated 👍

@AbhiPrasad AbhiPrasad merged commit a2282c8 into master Jun 21, 2024
11 checks passed
@AbhiPrasad AbhiPrasad deleted the onur/remix-update-start-script branch June 21, 2024 15:16
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