---
title: "Comment by Misha on \"🌍 Building Playwright Framework Step By Step - Setup Environment Variables\" | Hashnode"
description: "Thanks man! Your explanation is much clearer than in Artem Bondar's course."
url: "https://hashnode.com/posts/building-playwright-framework-step-by-step-setup-environment-variables/68414cddd5ac67eb0b2094e0/comment/685834b68be921dbb56ce348"
---

[Discussion](https://hashnode.com/posts/building-playwright-framework-step-by-step-setup-environment-variables/68414cddd5ac67eb0b2094e0)

Comment [🌍 Building Playwright Framework Step By Step - Setup Environment Variables](https://hashnode.com/posts/building-playwright-framework-step-by-step-setup-environment-variables/68414cddd5ac67eb0b2094e0)

[Misha](https://hashnode.com/@mpqa)

[Jun 22, 2025](https://hashnode.com/posts/building-playwright-framework-step-by-step-setup-environment-variables/68414cddd5ac67eb0b2094e0/comment/685834b68be921dbb56ce348)

Thanks man! Your explanation is much clearer than in Artem Bondar's course.

[Ivan Davidov](https://hashnode.com/@idavidov)

[Jun 22, 2025](https://hashnode.com/posts/building-playwright-framework-step-by-step-setup-environment-variables/68414cddd5ac67eb0b2094e0/comment/685834b68be921dbb56ce348#reply-68583945b43d20e572641c70)

You are welcome, Misha! My goal was to explain in details one method, which I found most suitable for huge real world app with test integration in CI/CD. Keep in mind that Artem shared a few different ways to do it and has the boundary to do it in a set timeframe. The goal of his course is to show everything from getting the locators all the wau to custom fixtures. It is not a straight forward task, and in my opinion he has done a fantastic job. For example, I begin with his course too, and I am very thankful for great fundamentals he tought me.

[Misha](https://hashnode.com/@mpqa)

[Jun 22, 2025](https://hashnode.com/posts/building-playwright-framework-step-by-step-setup-environment-variables/68414cddd5ac67eb0b2094e0/comment/685834b68be921dbb56ce348#reply-6858408870137ea54e632069)

[Ivan Davidov](https://hashnode.com/@idavidov) 100%- Artem did a great job! But for me the env variables topic was explained very unclearly. And I'm glad that I found your article!

[Misha](https://hashnode.com/@mpqa)

[Jun 22, 2025](https://hashnode.com/posts/building-playwright-framework-step-by-step-setup-environment-variables/68414cddd5ac67eb0b2094e0/comment/685834b68be921dbb56ce348#reply-6858411227193e7a64b52eb8)

[Ivan Davidov](https://hashnode.com/@idavidov) BTW, Exploring this topic I found a slightly different approach for setting playwright config:

import _as dotenv from 'dotenv' import_ as path from 'path'

const ENV = process.env.ENVIRONMENT || 'dev' const envPath = path.resolve(\_\_dirname, `./env/.env.${ENV}`) dotenv.config({ path: envPath })

[Ivan Davidov](https://hashnode.com/@idavidov)

[Jun 23, 2025](https://hashnode.com/posts/building-playwright-framework-step-by-step-setup-environment-variables/68414cddd5ac67eb0b2094e0/comment/685834b68be921dbb56ce348#reply-6858dd6cc3e90397748843d2)

[Misha](https://hashnode.com/@mpqa), it is great way to make the code easier to understand. You have done a great job! Be curious and keep experimenting 😎

[Ivan Davidov](https://hashnode.com/@idavidov)

[Jun 23, 2025](https://hashnode.com/posts/building-playwright-framework-step-by-step-setup-environment-variables/68414cddd5ac67eb0b2094e0/comment/685834b68be921dbb56ce348#reply-6858de6c630ee7d9ce53857b)

[Misha](https://hashnode.com/@mpqa), yes, I agree with you! The main goal of my blog was to document every major topic, relevent to my work, so I have one place where I can find everything I need. In my articles you will find great insights from many great guys - Stefan Judis, Murat Ozcan, Artem Bondar and Filip Hric. If you are curious, you can check their fantastic work.

[Misha](https://hashnode.com/@mpqa)

[Jun 23, 2025](https://hashnode.com/posts/building-playwright-framework-step-by-step-setup-environment-variables/68414cddd5ac67eb0b2094e0/comment/685834b68be921dbb56ce348#reply-6858fa6ae70d546e2c8c3774)

[Ivan Davidov](https://hashnode.com/@idavidov) Oh, great, I'll check them, and thank you for your work!

[Ivan Davidov](https://hashnode.com/@idavidov)

[Jun 23, 2025](https://hashnode.com/posts/building-playwright-framework-step-by-step-setup-environment-variables/68414cddd5ac67eb0b2094e0/comment/685834b68be921dbb56ce348#reply-685907683e3ddf74b7e1fb4c)

[Misha](https://hashnode.com/@mpqa) you are more than welcome!
