Skip to content

Commit

Permalink
Visually test Gatsby production build, instead of development server
Browse files Browse the repository at this point in the history
* Copy npm scripts from newer upstream Gatsby starter
  • Loading branch information
john-kurkowski committed Mar 30, 2024
1 parent d68ba27 commit c032cb5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/vrt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
run: npm run build

- name: Start server (in background)
run: npm run start &
run: npm run serve &

- name: Lost Pixel
uses: lost-pixel/lost-pixel@v3.16.0
Expand Down
2 changes: 1 addition & 1 deletion lostpixel.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { CustomProjectConfig } from 'lost-pixel'
export const config: CustomProjectConfig = {
pageShots: {
pages: [{ path: '/', name: 'landing' }],
baseUrl: 'http://172.17.0.1:8000'
baseUrl: 'http://172.17.0.1:9000'
},
lostPixelProjectId: 'clud602ae10romo0e861bvpv2',
apiKey: process.env.LOST_PIXEL_API_KEY
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"description": "Source for https://johnkurkowski.com.",
"scripts": {
"build": "gatsby build",
"clean": "gatsby clean",
"prepare": "husky",
"serve": "gatsby serve",
"start": "gatsby develop --host 0.0.0.0",
"test": "eslint . && prettier-standard --check $(git ls-files '*.css' '*.js' '*.jsx' '*.mjs' '*.ts' '*.tsx') && npm run type-check",
"type-check": "tsc --pretty"
Expand Down

0 comments on commit c032cb5

Please sign in to comment.