Skip to content

Commit 4485d32

Browse files
authored
fix(dev): path to outside-project files (#6624)
/ gets prepended due to the request and parentPath already has /
1 parent b41be83 commit 4485d32

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/qwik/src/optimizer/src/plugins/vite-dev-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export async function configureDevServer(
165165
// use the full path, otherwise relative to the source
166166
const qrlPath = parentPath.startsWith(opts.rootDir)
167167
? path.relative(opts.rootDir, parentPath)
168-
: `/@fs/${parentPath}`;
168+
: `@fs${parentPath}`;
169169
const qrlFile = `${encode(qrlPath)}/${symbolName.toLowerCase()}.js?_qrl_parent=${encode(parent)}`;
170170
return [symbolName, `${base}${qrlFile}`];
171171
},

0 commit comments

Comments
 (0)