Skip to content

Commit

Permalink
Update Playwright workflow to trigger on deployment status
Browse files Browse the repository at this point in the history
  • Loading branch information
khaosans committed Oct 4, 2024
1 parent fbd86ab commit 200a3c1
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 13 deletions.
11 changes: 7 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"extends": "next/core-web-vitals",
// Remove invalid options
// "useEslintrc": false,
// "extensions": [".ts", ".tsx"]
"extends": [
"next/core-web-vitals",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"root": true
}
8 changes: 2 additions & 6 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@
const nextConfig = {
reactStrictMode: true,
experimental: {
appDir: true,
// Remove the 'appDir' option as it's no longer needed in Next.js 14
},
images: {
domains: ['localhost'],
},
// Add this line
metadataBase: new URL('http://localhost:3000'),
// Remove the 'metadataBase' option if it's not needed
}

module.exports = nextConfig
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@
"rxjs": "^7.8.1",
"shell-quote": "^1.8.1",
"supports-color": "^8.1.1",
"tree-kill": "^1.2.2"
"tree-kill": "^1.2.2",
"dotenv": "^16.0.3",
"@types/dotenv": "^8.2.0"
},
"devDependencies": {
"@babel/core": "^7.25.2",
Expand All @@ -93,7 +95,9 @@
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"supertest": "^7.0.0",
"ts-jest": "^29.2.5"
"ts-jest": "^29.2.5",
"@typescript-eslint/eslint-plugin": "^5.59.0",
"@typescript-eslint/parser": "^5.59.0"
},
"resolutions": {
"punycode": "2.1.0"
Expand Down
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig, devices } from '@playwright/test'; // Add devices import
import dotenv from 'dotenv';
import * as dotenv from 'dotenv';
import path from 'path';

/**
Expand Down

0 comments on commit 200a3c1

Please sign in to comment.