@jill64/playwright-config
Advanced tools
Comparing version 1.3.0 to 1.4.0
import { Config } from '@playwright/test'; | ||
declare const providers: readonly ["cloudflare", "vercel"]; | ||
declare const providers: readonly ["cloudflare", "vercel", "netlify"]; | ||
type Provider = (typeof providers)[number]; | ||
@@ -4,0 +4,0 @@ export declare const branchPreview: (provider: Provider, options?: { |
import { vitePreview } from './vitePreview.js'; | ||
const providers = ['cloudflare', 'vercel']; | ||
const providers = ['cloudflare', 'vercel', 'netlify']; | ||
const { GITHUB_REF_NAME, GITHUB_REPOSITORY } = process.env; | ||
@@ -21,3 +21,5 @@ export const branchPreview = (provider, options) => { | ||
? `https://${project_name}.pages.dev` | ||
: `https://${project_name}.vercel.app` | ||
: provider === 'vercel' | ||
? `https://${project_name}.vercel.app` | ||
: `https://main--${project_name}.netlify.app` | ||
} | ||
@@ -34,5 +36,7 @@ }; | ||
? `https://${sub}.${project_name}.pages.dev` | ||
: `https://${project_name}-git-${sub}-jill-64.vercel.app` | ||
: provider === 'vercel' | ||
? `https://${project_name}-git-${sub}-jill-64.vercel.app` | ||
: `https://${sub}--${project_name}.netlify.app` | ||
} | ||
}; | ||
}; |
{ | ||
"name": "@jill64/playwright-config", | ||
"description": "🎭 Reusable My Playwright Config", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6742
95