question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove `now.json` in favor of built-in env vars support

See original GitHub issue

Hey 😄 You might already know this, but I figured I’d mention it. You can remove now.json entirely with environment variables support first-class through dotenv in Next.js. You can also remove env from next.config.js!

Also - Inside Vercel, you can now more easily choose if your env var is a secret or plaintext.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
leerobcommented, Apr 27, 2021

👋 I would suggest running Cypress again the preview deployment URL. That’s what we do at Vercel 😄

0reactions
brianlovincommented, Apr 27, 2021

Oh wow, that’s quite smart actually – any chance you are able to share or publish some of those action workflow files? Otherwise I can probably figure out how to string that together so things run in the correct order.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Inline Environment Variables in compile_command.json ...
Hi awesome clangd folks, When providing inline environment variables in a compilation command, I'm seeing behavior that makes me think ...
Read more >
Introduction to environment variables - CircleCI
To change the value of an environment variable, delete the current variable, and add it again with the new value. Private environment variables...
Read more >
Variables reference - Visual Studio Code
The variable ${workspaceRoot} was deprecated in favor of ${workspaceFolder} to better align with Multi-root Workspace support. Why aren't variables in tasks.
Read more >
User Variables - Templates | Packer - HashiCorp Developer
JSON templates are still supported by the Packer core, but new features ... Environment variables can be used within your template using user...
Read more >
Using Environment Variables | Cloud Functions Documentation
Open the Runtime, build and connections settings section. Select the Runtime tab. In the Runtime environment variables section, click Add variable and add...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found