Skip to content

Conversation

hyperz111
Copy link

@hyperz111 hyperz111 commented Aug 2, 2025

Description

Add validation to vitepress init when you try to place the config directory outside the CWD.

┌  Welcome to VitePress!
│
◆  Where should VitePress initialize the config?
│  ../foo█
└
┌  Welcome to VitePress!
│
▲  Where should VitePress initialize the config?
│  ../foo█
└  Please init your config inside this directory.

Absolute Path:

┌  Welcome to VitePress!
│
◆  Where should VitePress initialize the config?
│  /█
└
┌  Welcome to VitePress!
│
▲  Where should VitePress initialize the config?
│  /█
└  Please init your config inside this directory.

Linked Issues

N/A

Additional Context

N/A


Tip

The author of this PR can publish a preview release by commenting /publish below.

@hyperz111 hyperz111 closed this Aug 12, 2025
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 20, 2025
@hyperz111 hyperz111 deleted the init-validation branch September 1, 2025 12:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants