Skip to content

fix: missing .env file in environment variables lessons (#1835)#1875

Merged
teemingc merged 2 commits into
sveltejs:mainfrom
AbdullahShafqat-OG:env-file-missing-in-tutorial
May 26, 2026
Merged

fix: missing .env file in environment variables lessons (#1835)#1875
teemingc merged 2 commits into
sveltejs:mainfrom
AbdullahShafqat-OG:env-file-missing-in-tutorial

Conversation

@AbdullahShafqat-OG
Copy link
Copy Markdown
Contributor

No .env files were showing up in the Environment Variables lessons of the Advanced SvelteKit tutorial. This PR updates the glob import so that .env is correctly included in the build version and visible across all four lessons in this section.

Fixes #1835

Before

image

After

image

Note:
Verified that the __data.json for env-static-private route includes the .env file in build
image

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 18, 2026

@AbdullahShafqat-OG is attempting to deploy a commit to the Svelte Team on Vercel.

A member of the Team first needs to authorize it.

@AbdullahShafqat-OG AbdullahShafqat-OG force-pushed the env-file-missing-in-tutorial branch 2 times, most recently from 7ecc636 to 3891050 Compare March 29, 2026 16:09
@AbdullahShafqat-OG AbdullahShafqat-OG force-pushed the env-file-missing-in-tutorial branch 2 times, most recently from 3e2f86a to b724f3a Compare April 8, 2026 18:15
@AbdullahShafqat-OG AbdullahShafqat-OG force-pushed the env-file-missing-in-tutorial branch from b724f3a to 5e7408f Compare May 25, 2026 20:15
@vercel
Copy link
Copy Markdown

vercel Bot commented May 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
svelte-dev Ready Ready Preview May 26, 2026 2:35pm

Request Review

Copy link
Copy Markdown
Member

@teemingc teemingc left a comment

Choose a reason for hiding this comment

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

Thanks! I had to adjust the patterns to ignore node_modules and .svelte-kit since adding exhausted: true included them. Other than that, it's a good change

@teemingc teemingc merged commit 10a599d into sveltejs:main May 26, 2026
2 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.

.env file is not available in Environment variables lessons

2 participants