Skip to content

Commit

Permalink
Update decidePublicPath.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielCliftonGuardian committed Dec 23, 2024
1 parent 915c73a commit 9f8b024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dotcom-rendering/src/client/decidePublicPath.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const decidePublicPath = (): string => {
const isLocalHost = window.location.hostname === 'localhost';
const isPlaywright = process.env.PLAYWRIGHT === 'true';

if (isPlaywright) {
if (isPlaywright && isDev) {
return `/assets/`;
}

Expand Down

0 comments on commit 9f8b024

Please sign in to comment.