Skip to content

Commit

Permalink
add environment variables to webserver
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghislain89 committed Oct 10, 2023
1 parent b737fbf commit f20425f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
19 changes: 18 additions & 1 deletion packages/apps/tools/playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
import { defaultConfig } from '@kadena-dev/heft-rig/playwright.config.base';
import { defineConfig } from "@playwright/test";

export default defineConfig({...defaultConfig}
process.env.FAUCET_PUBLIC_KEY = "782127638ab9cc8fa8598ff0120464ceef6f367ddcd616b47afffbdb175dcc5e";
process.env.FAUCET_PRIVATE_KEY = "93fd78bd1e79a3b593d4732b76050b418aeefa5e4e6ea80f351b4c3a5b0dd19f";


export default defineConfig({
...defaultConfig,
webServer: {
command: 'pnpm dev',
url: 'http://127.0.0.1:3000',
reuseExistingServer: false,
stdout: 'ignore',
stderr: 'ignore',
env: {
FAUCET_PUBLIC_KEY: "782127638ab9cc8fa8598ff0120464ceef6f367ddcd616b47afffbdb175dcc5e",
FAUCET_PRIVATE_KEY: "93fd78bd1e79a3b593d4732b76050b418aeefa5e4e6ea80f351b4c3a5b0dd19f"
}
}
}
);
6 changes: 2 additions & 4 deletions packages/tools/heft-rig/playwright.config.base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,8 @@ export const defaultConfig: PlaywrightTestConfig = {
command: 'pnpm run start',
url: 'http://127.0.0.1:3000',
reuseExistingServer: false,
env: {
FAUCET_PUBLIC_KEY: "782127638ab9cc8fa8598ff0120464ceef6f367ddcd616b47afffbdb175dcc5e",
FAUCET_PRIVATE_KEY: "93fd78bd1e79a3b593d4732b76050b418aeefa5e4e6ea80f351b4c3a5b0dd19f"
}
stdout: 'ignore',
stderr: 'ignore',
},
};

Expand Down

0 comments on commit f20425f

Please sign in to comment.