Skip to content

Correct env type declaration filename in docs#1155

Merged
LadyBluenotes merged 1 commit intosolidjs:mainfrom
mau27galvez:patch-1
Apr 7, 2025
Merged

Correct env type declaration filename in docs#1155
LadyBluenotes merged 1 commit intosolidjs:mainfrom
mau27galvez:patch-1

Conversation

@mau27galvez
Copy link
Copy Markdown
Contributor

  • I have read the Contribution guide
  • This PR references an issue (except for typos, broken links, or other minor problems)

Description(required)

The documentation incorrectly suggests using .env.d.ts for typing environment variables. However, based on both Vite's official docs and testing, type safety only works with env.d.ts or vite-env.d.ts—not .env.d.ts

@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@netlify
Copy link
Copy Markdown

netlify bot commented Apr 7, 2025

Deploy Preview for solid-docs ready!

Name Link
🔨 Latest commit f9cecb8
🔍 Latest deploy log https://app.netlify.com/sites/solid-docs/deploys/67f455500335e600089c326b
😎 Deploy Preview https://deploy-preview-1155--solid-docs.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 site configuration.

@mau27galvez
Copy link
Copy Markdown
Contributor Author

Maybe it would be good to also include the vite-env.d.ts option in the docs?

@mau27galvez mau27galvez changed the title Update environment-variables.mdx Correct env type declaration filename in docs Apr 7, 2025
Copy link
Copy Markdown
Member

@LadyBluenotes LadyBluenotes left a comment

Choose a reason for hiding this comment

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

Great catch! Thank you!

@LadyBluenotes LadyBluenotes merged commit e98be1c into solidjs:main Apr 7, 2025
7 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