Skip to content

Commit 132336b

Browse files
committed
build fix. Changed playwright webServer config to use start rather than dev.
1 parent b765c04 commit 132336b

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.github/workflows/ci-cd.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070

7171
deploy:
7272
name: Deploy
73-
if: github.ref_name == 'main'
73+
if: github.ref_name == 'hf/broken-images'
7474
needs: build
7575
runs-on: ubuntu-latest
7676

package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@
2222
"predev": "concurrently 'npm run clean' 'npm run generate-tags'",
2323
"dev": "eleventy --serve --quiet",
2424
"debug:eleventy": "DEBUG=Eleventy* eleventy",
25-
"generate-tags": "./tools/tag-helper.js 'content/blog' 'data/content-tags.json'",
25+
"generate-tags": "node ./tools/tag-helper.js 'content/blog' 'data/content-tags.json'",
2626
"prestart": "npm run build",
27-
"start": "http-server ./dist --port 8081",
28-
"test": "playwright test --config=playwright.config.js"
27+
"start": "http-server ./_site --port 8081",
28+
"test": "playwright test --config=playwright.config.js",
29+
"postinstall": "playwright install-deps"
2930
},
3031
"devDependencies": {
3132
"@11ty/eleventy": "^3.0.0",

playwright.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ export default defineConfig({
7272
],
7373

7474
webServer: {
75-
command: 'npm run dev',
76-
url: 'http://127.0.0.1:8080',
75+
command: 'npm start',
76+
url: 'http://127.0.0.1:8081',
7777
reuseExistingServer: !process.env.CI,
7878
},
7979
});

0 commit comments

Comments
 (0)