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

import.meta.env.SSR #1345

Merged
merged 5 commits into from
Oct 18, 2020
Merged

import.meta.env.SSR #1345

merged 5 commits into from
Oct 18, 2020

Conversation

FredKSchott
Copy link
Owner

@FredKSchott FredKSchott commented Oct 17, 2020

Changes

Testing

  • Updated tests.

Docs

Open Questions

  • Is this really the best naming? Originally this PR used import.meta.env.TARGET, but now I worry that that's biting off more than we fully understand at this point. "is this for SSR or is this for the normal web build" is really as opinionated as we get here, so we shouldn't jump to describing context like "node" or "browser" to mean "SSR" and "no SSR".

@vercel
Copy link

vercel bot commented Oct 17, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/pikapkg/snowpack/m9alzatdn
✅ Preview: https://snowpack-git-env-target.pikapkg.vercel.app

@FredKSchott FredKSchott changed the title import.meta.env.TARGET import.meta.env.SSR Oct 18, 2020
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.

1 participant