Skip to content

Adding urls to the previews definition #192

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
noam-honig opened this issue Jul 30, 2024 · 2 comments · Fixed by #233
Closed

Adding urls to the previews definition #192

noam-honig opened this issue Jul 30, 2024 · 2 comments · Fixed by #233
Labels
enhancement New feature or request pr-welcome Accepting pull requests for this change

Comments

@noam-honig
Copy link
Contributor

Is your feature request related to a problem?

I want to show several preview tabs - with different relative urls for example:
{port:5173, title:"frontend"}
{port:5173, title:"api",url:"/api/tasks"}
{port:5173, title:"admin",url:"/api/admin"}

Describe the solution you'd like.

I want to show several preview tabs - with different relative urls for example:
{port:5173, title:"frontend"}
{port:5173, title:"api",url:"/api/tasks"}
{port:5173, title:"admin",url:"/api/admin"}

Describe alternatives you've considered.

reviewed the https://tutorialkit.dev/reference/configuration/ url and couldn't find anything

Additional context

No response

@AriPerkkio
Copy link
Member

Currently this is not possible but we are planning to add support for it. I've done some design for the possible API earlier:

previews: 
   - 1234/pathname
   - [1234/pathname, 'Title']
   - { port: 1234, path: '/pathname', title: 'Title' }

@AriPerkkio AriPerkkio added enhancement New feature or request pr-welcome Accepting pull requests for this change labels Jul 30, 2024
@AriPerkkio
Copy link
Member

Released in 0.1.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pr-welcome Accepting pull requests for this change
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants