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

examples: use a shared Convex backend for StackBlitz #2606

Merged
merged 3 commits into from
Oct 21, 2024

Conversation

thomasballinger
Copy link
Contributor

@thomasballinger thomasballinger commented Oct 21, 2024

Custom StackBlitz dev command that uses a shared backend. This makes https://tanstack.com/router/v1/docs/framework/react/examples/start-convex-trellaux usable.

Clear this shared table every 20 minutes.

Copy link

nx-cloud bot commented Oct 21, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 125fad5. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 2 targets

Sent with 💌 from NxCloud.

@thomasballinger
Copy link
Contributor Author

Is there a nicer way to do this, e.g. a custom StackBlitz command maybe? I need to find where StackBlitz config is done.

I see https://developer.stackblitz.com/platform/webcontainers/project-config, maybe a package.json field is cleaner here.

Copy link

pkg-pr-new bot commented Oct 21, 2024

Open in Stackblitz

More templates

@tanstack/eslint-plugin-router

pnpm add https://pkg.pr.new/@tanstack/eslint-plugin-router@2606

@tanstack/react-cross-context

pnpm add https://pkg.pr.new/@tanstack/react-cross-context@2606

@tanstack/history

pnpm add https://pkg.pr.new/@tanstack/history@2606

@tanstack/react-router-with-query

pnpm add https://pkg.pr.new/@tanstack/react-router-with-query@2606

@tanstack/router-arktype-adapter

pnpm add https://pkg.pr.new/@tanstack/router-arktype-adapter@2606

@tanstack/router-cli

pnpm add https://pkg.pr.new/@tanstack/router-cli@2606

@tanstack/react-router

pnpm add https://pkg.pr.new/@tanstack/react-router@2606

@tanstack/router-generator

pnpm add https://pkg.pr.new/@tanstack/router-generator@2606

@tanstack/router-devtools

pnpm add https://pkg.pr.new/@tanstack/router-devtools@2606

@tanstack/router-plugin

pnpm add https://pkg.pr.new/@tanstack/router-plugin@2606

@tanstack/router-valibot-adapter

pnpm add https://pkg.pr.new/@tanstack/router-valibot-adapter@2606

@tanstack/router-vite-plugin

pnpm add https://pkg.pr.new/@tanstack/router-vite-plugin@2606

@tanstack/router-zod-adapter

pnpm add https://pkg.pr.new/@tanstack/router-zod-adapter@2606

@tanstack/start-vite-plugin

pnpm add https://pkg.pr.new/@tanstack/start-vite-plugin@2606

@tanstack/start

pnpm add https://pkg.pr.new/@tanstack/start@2606

@tanstack/create-router

pnpm add https://pkg.pr.new/@tanstack/create-router@2606

@tanstack/virtual-file-routes

pnpm add https://pkg.pr.new/@tanstack/virtual-file-routes@2606

commit: 125fad5

@thomasballinger
Copy link
Contributor Author

thomasballinger commented Oct 21, 2024

Updated, no more wacky environment detection, just add a .stackblitzrc file.

I'm not sure how to test this approach though so I'm not confident it works.

@thomasballinger
Copy link
Contributor Author

The next thing to figure out is how to make this deploy with one click on Vercel. I think this should use the same approach: if you haven't actually closed this project, use the shared backend?

@schiller-manuel schiller-manuel changed the title Use a shared Convex backend for StackBlitz examples: use a shared Convex backend for StackBlitz Oct 21, 2024
@schiller-manuel schiller-manuel merged commit 6144cf0 into TanStack:main Oct 21, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants