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

Fix .env.example template #184

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/famous-keys-drive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-eth": patch
---

add possibility to use multiple variables in .env.example
2 changes: 1 addition & 1 deletion templates/base/packages/nextjs/.env.example.template.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const contents = ({ additionalVars }) => {
# More info: https://nextjs.org/docs/pages/building-your-application/configuring/environment-variables
NEXT_PUBLIC_ALCHEMY_API_KEY=
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID=
${additionalVars.join("\n")}
${additionalVars[0].join("\n")}
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should add check :

${additionalVars[0] ? additionalVars[0]?.join("\n") : ''}

Other wise it fails in normal yarn cli --skip command.

Screenshot 2025-01-01 at 3 02 22 PM

`
};

Expand Down
Loading