Commit 06452d77 authored by tom's avatar tom

fix envs generator for pw tests

parent 40463c80
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
echo "🌀 Creating client script with ENV values..." echo "🌀 Creating client script with ENV values..."
# Define the output file name # Define the output file name
output_file="./public/envs.js" output_file="${1:-./public/envs.js}"
touch $output_file; touch $output_file;
truncate -s 0 $output_file; truncate -s 0 $output_file;
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
</head> </head>
<body> <body>
<div id="root"></div> <div id="root"></div>
<script type="module" src="/public/envs.js"></script> <script type="module" src="/playwright/envs.js"></script>
<script type="module" src="/playwright/index.ts"></script> <script type="module" src="/playwright/index.ts"></script>
</body> </body>
</html> </html>
...@@ -6,7 +6,7 @@ rm -rf ./playwright/.cache ...@@ -6,7 +6,7 @@ rm -rf ./playwright/.cache
dotenv \ dotenv \
-e $config_file \ -e $config_file \
-- bash -c './deploy/scripts/make_envs_script.sh' -- bash -c './deploy/scripts/make_envs_script.sh ./playwright/envs.js'
dotenv \ dotenv \
-v NODE_OPTIONS=\"--max-old-space-size=4096\" \ -v NODE_OPTIONS=\"--max-old-space-size=4096\" \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment