Skip to content

Commit

Permalink
Add puppeteer installation
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasstrehle committed Apr 8, 2024
1 parent 86f8c6c commit 72d35e3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions backend/entrypoint.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@ import { timeout } from "unyt_core/datex_all.ts";
import { Entrypoint } from "uix/html/entrypoints.ts";
import { FileProvider } from "uix/html/entrypoint-providers.tsx";
import { UIX } from "uix";
import { exec } from "https://deno.land/x/exec@0.0.5/mod.ts";

UIX.Theme.setMode("dark");

exec("PUPPETEER_PRODUCT=chrome deno run -A --unstable https://deno.land/x/puppeteer@16.2.0/install.ts")
.then(() => console.info("Successfully installed puppeteer"))
.catch(console.error);

@endpoint
export class Screenshot {
@timeout(40_000)
Expand Down

0 comments on commit 72d35e3

Please sign in to comment.