-
-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy path.happo.js
36 lines (35 loc) · 1.13 KB
/
.happo.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
const { RemoteBrowserTarget } = require("happo.io");
module.exports = {
apiKey: process.env.HAPPO_API_KEY,
apiSecret: process.env.HAPPO_API_SECRET,
project: "dev-portfolio-tutorial",
targets: {
"chrome-1080p": new RemoteBrowserTarget("chrome", {
viewport: "1920x1080",
freezeAnimations: "last-frame",
}),
// all viewports https://viewportsizer.com/devices/
// Samsung Galaxy S10+, S10
"chrome-galaxy-s10": new RemoteBrowserTarget("chrome", {
viewport: "360x740",
freezeAnimations: "last-frame",
}),
// iphone viewports https://yesviz.com/iphones.php
"safari-1080p": new RemoteBrowserTarget("safari", {
viewport: "1920x1080",
freezeAnimations: "last-frame",
}),
// iphone 12 pro
"safari-iphone-12-pro": new RemoteBrowserTarget("safari", {
viewport: "390x844",
freezeAnimations: "last-frame",
}),
// iphone 12 pro
"chrome-650": new RemoteBrowserTarget("chrome", {
viewport: "650x415",
freezeAnimations: "last-frame",
}),
// only works on public urls
// pages: [{ url: 'http://localhost:3000/', title: 'Home Page' }],
},
};