From 65841dc95d8302bd2b692554387412b1f8f70f83 Mon Sep 17 00:00:00 2001
From: AleksanderBodurri <alexbodurri1117@gmail.com>
Date: Tue, 14 Nov 2023 14:47:36 -0500
Subject: [PATCH] fix: cypress github action node v18 issue

---
 .github/workflows/cypress.yml | 4 ++--
 cypress.config.ts             | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml
index 1c9e6e2..2de7160 100644
--- a/.github/workflows/cypress.yml
+++ b/.github/workflows/cypress.yml
@@ -27,8 +27,8 @@ jobs:
         uses: cypress-io/github-action@v2
         with:
           start: |
-            ng serve ngx-turnstile-demo
-          wait-on: "http://localhost:4200"
+            ng serve ngx-turnstile-demo --host 0.0.0.0
+          wait-on: "http://0.0.0.0:4200"
           wait-on-timeout: 300
           browser: chrome
           config-file: cypress.config.ts
diff --git a/cypress.config.ts b/cypress.config.ts
index 1add1f9..9981236 100644
--- a/cypress.config.ts
+++ b/cypress.config.ts
@@ -9,9 +9,9 @@ export default defineConfig({
     specPattern: '**/*.cy.ts',
   },
   env: {
-    baseUrl: 'http://localhost:4200',
-    reactiveFormUrl: 'http://localhost:4200/reactive-form-example',
-    templateDrivenFormUrl: 'http://localhost:4200/template-driven-form-example',
+    baseUrl: 'http://0.0.0.0:4200',
+    reactiveFormUrl: 'http://0.0.0.0:4200/reactive-form-example',
+    templateDrivenFormUrl: 'http://0.0.0.0:4200/template-driven-form-example',
   },
   e2e: {
     setupNodeEvents(on, config) {