Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# change this to your production url when deploying
NEXT_PUBLIC_BASE_URL="http://localhost:3000"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ yarn-error.log*

# env files (can opt-in for committing if needed)
.env*
!.env.example

# vercel
.vercel
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@ This is a template for creating a custom registry using Next.js.
- Every registry item are compatible with the `shadcn` CLI.
- We have also added v0 integration using the `Open in v0` api.

## Environment Configuration

For the "Open in v0" feature to work properly, you need to set the correct deployment URL:

1. Copy `.env.example` to `.env`
2. Update `NEXT_PUBLIC_BASE_URL` to your deployed registry URL (e.g., `https://registry-template.vercel.app`)

```bash
cp .env.example .env
# Edit .env and set NEXT_PUBLIC_BASE_URL to your deployment URL
```

## Documentation

Visit the [shadcn documentation](https://ui.shadcn.com/docs/registry) to view the full documentation.