Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

Migrating lost-pixel to their new method (#1121)

Andras Bacsaifde56c277bab
diff --git a/.github/workflows/vis-reg-tests.yml b/.github/workflows/vis-reg-tests.yml
index afb88aa28f..2e22682ef6 100644
--- a/.github/workflows/vis-reg-tests.yml
+++ b/.github/workflows/vis-reg-tests.yml
@@ -1,3 +1,4 @@
+name: Visual Regression Tests
on: [push]
jobs:
@@ -14,8 +15,7 @@ jobs:
run: pnpm storybook:ds:build
- name: Lost Pixel
- uses: lost-pixel/[email protected]
+ uses: lost-pixel/[email protected]
env:
- S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
- S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}
LOST_PIXEL_CONFIG_DIR: packages/design-system
+ LOST_PIXEL_API_KEY: ${{ secrets.LOST_PIXEL_API_KEY }}
diff --git a/packages/design-system/lostpixel.config.ts b/packages/design-system/lostpixel.config.ts
index 98efab8b78..32e7aa8020 100644
--- a/packages/design-system/lostpixel.config.ts
+++ b/packages/design-system/lostpixel.config.ts
@@ -1,16 +1,9 @@
-import type { CustomProjectConfig } from "lost-pixel";
import * as process from "process";
-export const config: CustomProjectConfig = {
+export const config = {
storybookShots: {
storybookUrl: "packages/design-system/storybook-static",
},
- lostPixelProjectId: "cl8a8xmx714904901m9oce4vhqc",
- lostPixelUrl: "https://app.gitbased.lost-pixel.com/api/callback",
- s3: {
- endPoint: "ams3.digitaloceanspaces.com",
- accessKey: process.env.S3_ACCESS_KEY,
- secretKey: process.env.S3_SECRET_KEY,
- bucketName: "beta-seven-turtle-time-blue-narrow",
- },
+ lostPixelProjectId: "cleii5n4g0efjim0e69w6rme0",
+ apiKey: process.env.LOST_PIXEL_API_KEY,
};