2min chapter

Syntax - Tasty Web Development Treats cover image

Save us from Config File Hell

Syntax - Tasty Web Development Treats

CHAPTER

Using JavaScript in a VIT Level Is Super Handy

I have something neat in my feet config using JavaScript I use the define property and I define a global variable named version. That version is equal to a JSON string of I Processed dot ENV and PM package version so it's grabbing Version and writing it to a variable named version that I can then use within All sorts of things rightWhether that's sentry for air tracking right I throw that in there and then sentry always knows what version I have as long as it's up to date in package.json super handy Oh, that's great I do something similar like that in the boss monster and I just pulled pull that data from the packageJSON But doing it at a VIT Level

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode