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

Question: How come the .env.sample variables aren't really being used in the nextjs app router? Can I see the file where it is being used ? #305

Closed
mike-rambil opened this issue Dec 30, 2024 · 3 comments

Comments

@mike-rambil
Copy link

Can't seem to find the location where these variables are used to initialize the app.

image

Can you navigate me the file that initializes new relic with the nextjs app?

@mike-rambil mike-rambil added the bug Something isn't working label Dec 30, 2024
@workato-integration
Copy link

@jsumners-nr
Copy link
Contributor

The .env file is loaded via the start script:

"start": "NODE_OPTIONS='-r dotenv/config --loader newrelic/esm-loader.mjs -r newrelic' next start",

@jsumners-nr jsumners-nr removed the bug Something isn't working label Dec 30, 2024
@mike-rambil
Copy link
Author

thanks, didn't notice that!

@github-project-automation github-project-automation bot moved this from Triage Needed: Unprioritized Features to Done: Issues recently completed in Node.js Engineering Board Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants