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

don't prepend message about .env.local if creating .env.local #7288

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

SimeonGriggs
Copy link
Contributor

@SimeonGriggs SimeonGriggs commented Jul 31, 2024

Description

You can init a new Sanity project to just create an .env file like so

npx sanity init --env

But you can also stipulate the name of the file, like

npx sanity init --env=.env.local

Currently we always prepend a message in the file about using an .env.local file instead for secrets, which is confusing if that's exactly what you are creating.

Notes for release

Fixed default messaging in .env file created by sanity init --env if creating a .env.local file

@SimeonGriggs SimeonGriggs requested a review from a team as a code owner July 31, 2024 16:39
@SimeonGriggs SimeonGriggs requested review from rexxars and removed request for a team July 31, 2024 16:39
Copy link

vercel bot commented Jul 31, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
page-building-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 31, 2024 4:48pm
performance-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 31, 2024 4:48pm
test-compiled-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 31, 2024 4:48pm
test-next-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 31, 2024 4:48pm
test-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 31, 2024 4:48pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
studio-workshop ⬜️ Ignored (Inspect) Jul 31, 2024 4:48pm

Copy link
Contributor

No changes to documentation

Copy link
Contributor

Component Testing Report Updated Jul 31, 2024 4:55 PM (UTC)

File Status Duration Passed Skipped Failed
comments/CommentInput.spec.tsx ✅ Passed (Inspect) 44s 15 0 0
formBuilder/ArrayInput.spec.tsx ✅ Passed (Inspect) 9s 3 0 0
formBuilder/inputs/PortableText/Annotations.spec.tsx ✅ Passed (Inspect) 31s 6 0 0
formBuilder/inputs/PortableText/copyPaste/CopyPaste.spec.tsx ✅ Passed (Inspect) 37s 11 7 0
formBuilder/inputs/PortableText/copyPaste/CopyPasteFields.spec.tsx ✅ Passed (Inspect) 0s 0 12 0
formBuilder/inputs/PortableText/Decorators.spec.tsx ✅ Passed (Inspect) 17s 6 0 0
formBuilder/inputs/PortableText/DisableFocusAndUnset.spec.tsx ✅ Passed (Inspect) 10s 3 0 0
formBuilder/inputs/PortableText/DragAndDrop.spec.tsx ✅ Passed (Inspect) 3m 0s 0 0 0
formBuilder/inputs/PortableText/FocusTracking.spec.tsx ✅ Passed (Inspect) 45s 15 0 0
formBuilder/inputs/PortableText/Input.spec.tsx ✅ Passed (Inspect) 1m 44s 21 0 0
formBuilder/inputs/PortableText/ObjectBlock.spec.tsx ✅ Passed (Inspect) 1m 15s 18 0 0
formBuilder/inputs/PortableText/PresenceCursors.spec.tsx ✅ Passed (Inspect) 8s 3 9 0
formBuilder/inputs/PortableText/RangeDecoration.spec.tsx ✅ Passed (Inspect) 26s 9 0 0
formBuilder/inputs/PortableText/Styles.spec.tsx ✅ Passed (Inspect) 17s 6 0 0
formBuilder/inputs/PortableText/Toolbar.spec.tsx ✅ Passed (Inspect) 1m 14s 21 0 0
formBuilder/tree-editing/TreeEditing.spec.tsx ✅ Passed (Inspect) 1m 46s 30 0 0
formBuilder/tree-editing/TreeEditingNestedObjects.spec.tsx ✅ Passed (Inspect) 20s 3 0 0

@rexxars rexxars merged commit ec27de0 into next Aug 1, 2024
42 checks passed
@rexxars rexxars deleted the fix/env-file branch August 1, 2024 18:14
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