Skip to content
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

Add a link to docusaurus.new/ts in Playground page #8734

Closed
wants to merge 1 commit into from
Closed
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 website/docs/playground.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,6 @@ import {PlaygroundCardsRow} from '@site/src/components/Playground';

For convenience, we'll remember your choice next time you visit [docusaurus.new](https://docusaurus.new).

If you prefer a TypeScript playground, visit [docusaurus.new/ts](https://docusaurus.new/ts) instead.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, this link doesn't work, there's no configured serverless function to handle it.

Also, how would we automatically choose between Codesandbox and Stackblitz without biasing toward one in particular??

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't you refer to and reuse the cookie used by the URL without ts suffix?
I can't believe the existence of people using CodeSandBox for JS and StackBlitz for TS or vice versa.

Copy link
Collaborator

@slorber slorber Mar 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The cookie does not exist on the first visit.

When you first visit / it simply redirects to the playground page, not a specific sandbox. I could make /ts redirect to the playground page as well on the first visit if you want. Not sure it's worth it.


:::