Skip to content

Commit

Permalink
Merge pull request #3103 from vuestorefront/v2
Browse files Browse the repository at this point in the history
chore: automatic sync v2->v2-develop
  • Loading branch information
github-actions[bot] authored Apr 16, 2024
2 parents f1ff1c6 + ce4e554 commit e10d15a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/docs/components/server/plugins/code-snippets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ export default defineNitroPlugin((nitro: any) => {

let filePath = resolver.resolve(normalizedSrc);
if (import.meta.env.NODE_ENV === 'prerender') {
filePath = path.join(path.dirname(import.meta.url), '..', '..', '..', filePath).replace('file:/', '/');
filePath = path.join(path.dirname(import.meta.url), '..', '..', '..', '..', filePath).replace('file:/', '/');
if (!fs.existsSync(filePath)) {
filePath = path
.join(path.dirname(import.meta.url), '..', '..', '..', '..', resolver.resolve(normalizedSrc))
.join(path.dirname(import.meta.url), '..', '..', '..', '..', '..', resolver.resolve(normalizedSrc))
.replace('file:/', '/');
}
}
Expand Down

0 comments on commit e10d15a

Please sign in to comment.