Fix the black screen: CRT shader did not compile, plus a test suite that can actually see it #1
@@ -23,6 +23,11 @@ const dist = join(root, 'dist');
|
|||||||
const PORT = Number(process.env.CHECK_PORT || 4176);
|
const PORT = Number(process.env.CHECK_PORT || 4176);
|
||||||
const CDP_PORT = Number(process.env.CDP_PORT || 9333);
|
const CDP_PORT = Number(process.env.CDP_PORT || 9333);
|
||||||
|
|
||||||
|
if (!existsSync(join(dist, 'index.html'))) {
|
||||||
|
console.error('HEADLESS CHECK FAILED: dist/index.html not found. Run `npm run build` first.');
|
||||||
|
process.exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
function findChrome() {
|
function findChrome() {
|
||||||
if (process.env.CHROME) return process.env.CHROME;
|
if (process.env.CHROME) return process.env.CHROME;
|
||||||
const candidates = [
|
const candidates = [
|
||||||
|
|||||||
Reference in new issue
Block a user