Skip to content

Comments

Update node.mdx: replace dotenvx with @dotenvx/dotenvx (fixing not found error for npm module)#12962

Merged
ArmandPhilippot merged 2 commits intowithastro:mainfrom
DanielPantle:patch-1
Dec 22, 2025
Merged

Update node.mdx: replace dotenvx with @dotenvx/dotenvx (fixing not found error for npm module)#12962
ArmandPhilippot merged 2 commits intowithastro:mainfrom
DanielPantle:patch-1

Conversation

@DanielPantle
Copy link
Contributor

Description

In node.mdx, dotenvx is listed as an option for the Node.JS adapter to load environment variables when self hosting. The dotenvx command npx dotenvx run -- node ./dist/server/entry.mjs does not work:

npm error code E404
npm error 404 Not Found - GET https://registry.npmjs.org/dotenvx - Not found
npm error 404
npm error 404  The requested resource 'dotenvx@*' could not be found or you do not have permission to access it.
npm error 404
npm error 404 Note that you can also install from a
npm error 404 tarball, folder, http url, or git url.
npm error A complete log of this run can be found in: ....log

The package is named @dotenvx/dotenvx (not sure if it was renamed), therefore the correct command should be npx @dotenvx/dotenvx run -- node ./dist/server/entry.mjs.

Related issues & labels (optional)

@netlify
Copy link

netlify bot commented Dec 19, 2025

Deploy Preview for astro-docs-2 ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 2bb967b
🔍 Latest deploy log https://app.netlify.com/projects/astro-docs-2/deploys/6949b24a6f8a43000856ae21
😎 Deploy Preview https://deploy-preview-12962--astro-docs-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@astrobot-houston
Copy link
Contributor

astrobot-houston commented Dec 19, 2025

Lunaria Status Overview

🌕 This pull request will trigger status changes.

Learn more

By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.

You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

File Note
en/guides/integrations-guide/node.mdx Source changed, localizations will be marked as outdated.
Warnings reference
Icon Description
🔄️ The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

@astrobot-houston
Copy link
Contributor

Hello! Thank you for opening your first PR to Astro’s Docs! 🎉

Here’s what will happen next:

  1. Our GitHub bots will run to check your changes.
    If they spot any broken links you will see some error messages on this PR.
    Don’t hesitate to ask any questions if you’re not sure what these mean!

  2. In a few minutes, you’ll be able to see a preview of your changes on Netlify 🥳.

  3. One or more of our maintainers will take a look and may ask you to make changes.
    We try to be responsive, but don’t worry if this takes a few days.

Copy link
Member

@ArmandPhilippot ArmandPhilippot left a comment

Choose a reason for hiding this comment

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

Thank you for noticing and fixing that! And, welcome to Team Docs! 🎉

The package is named @dotenvx/dotenvx (not sure if it was renamed), therefore the correct command should be npx @dotenvx/dotenvx run -- node ./dist/server/entry.mjs.

I think the assumption was the package is globally or locally installed. But, as suggested in their docs (in Npx under https://dotenvx.com/docs/install#other), @dotenvx/dotenvx is the right name when the package is not installed so to avoid any confusion your fix seems right to me.

@ArmandPhilippot ArmandPhilippot merged commit ca9df1c into withastro:main Dec 22, 2025
10 checks passed
ArmandPhilippot added a commit to ArmandPhilippot/astro-docs that referenced this pull request Dec 23, 2025
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.

3 participants