We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f02f69a commit 5c786dbCopy full SHA for 5c786db
scriptUrls.js
@@ -1,7 +1,7 @@
1
const API_URL =
2
process.env.NODE_ENV === 'development'
3
? 'http://localhost:35001'
4
- : new URL(process.env.NEXT_PUBLIC_API_URL).hostname;
+ : new URL(process.env.NEXT_PUBLIC_API_URL || 'http://localhost:35001').hostname;
5
6
const scriptSrcUrls = [
7
API_URL,
0 commit comments