Skip to content

Commit 98da381

Browse files
committed
fix: in mac phtauri:// localhost url causes src-node to not pickup in prod
1 parent 76af9d1 commit 98da381

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/node-loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ function nodeLoader() {
637637

638638
async function _resolveSrcNodePath() {
639639
// Check if running from localhost dev server
640-
if (window.location.hostname === 'localhost') {
640+
if (window.location.href.startsWith('http://localhost:')) {
641641
// Fetch phoenix path from dev server API to use local src-node
642642
const response = await fetch('/api/getPhoenixPath');
643643
const pathInfo = await response.json();

0 commit comments

Comments
 (0)