Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

Commit 3afca81

Browse files
committed
! PUBLIC_URL
1 parent 4dad65c commit 3afca81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-scripts/template/src/registerServiceWorker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default function register() {
2323
if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {
2424
// The URL constructor is available in all browsers that support SW.
2525
const publicUrl = new URL(
26-
process.env.PUBLIC_URL || '',
26+
process.env.PUBLIC_URL!,
2727
window.location.toString()
2828
);
2929
if (publicUrl.origin !== window.location.origin) {

0 commit comments

Comments
 (0)