Skip to content

Commit

Permalink
Add preview links
Browse files Browse the repository at this point in the history
  • Loading branch information
SanjeebLama committed Apr 24, 2023
1 parent 0800d0e commit 084adda
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions apps/docs/lighthouserc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
module.exports = {
ci: {
collect: {
url: 'http://localhost:3001',
startServerCommand: 'yarn run dev',
// Use this for Prod / dev
url: [
`https://${process.env.PREVIEW_URL}`,
],
// url: 'http://localhost:3001',
startServerCommand:
process.env.NODE_ENV === 'production' ? undefined : 'npm run start',
},
assert: {
preset: 'lighthouse:no-pwa',
Expand All @@ -12,4 +17,3 @@ module.exports = {
},
},
};

0 comments on commit 084adda

Please sign in to comment.