Skip to content

examples: use a shared Convex backend for StackBlitz - #2606

Merged
schiller-manuel merged 3 commits into
TanStack:mainfrom
thomasballinger:tom/convex-stackblitz
Oct 21, 2024
Merged

examples: use a shared Convex backend for StackBlitz#2606
schiller-manuel merged 3 commits into
TanStack:mainfrom
thomasballinger:tom/convex-stackblitz

Conversation

@thomasballinger

@thomasballinger thomasballinger commented Oct 21, 2024

Copy link
Copy Markdown
Contributor

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.

@nx-cloud

nx-cloud Bot commented Oct 21, 2024

Copy link
Copy Markdown
Contributor

☁️ 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
Copy Markdown
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.

@pkg-pr-new

pkg-pr-new Bot commented Oct 21, 2024

Copy link
Copy Markdown

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

thomasballinger commented Oct 21, 2024

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
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
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