Skip to content

Commit 49fe67c

Browse files
rsbhclaude
andcommitted
fix: add preserveSymlinks to prevent symlink resolution outside Vite root
Node resolves symlinks to real paths, which may be outside the Vite root. preserveSymlinks keeps the .content/ symlink path as-is. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6511afe commit 49fe67c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/chronicle/src/server/vite-config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export async function createViteConfig(
4444
'@content': path.resolve(packageRoot, '.content'),
4545
},
4646
conditions: ['module-sync', 'import', 'node'],
47+
preserveSymlinks: true,
4748
dedupe: [
4849
'react',
4950
'react-dom',

0 commit comments

Comments
 (0)