router icon indicating copy to clipboard operation
router copied to clipboard

Use a shared Convex backend for StackBlitz

Open thomasballinger opened this issue 1 year ago • 5 comments

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.

thomasballinger avatar Oct 21 '24 01:10 thomasballinger

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 125fad552ac50aeb96dafbf7cb54ccc1f39c080a. 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.

nx-cloud[bot] avatar Oct 21 '24 01:10 nx-cloud[bot]

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.

thomasballinger avatar Oct 21 '24 01:10 thomasballinger

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

pkg-pr-new[bot] avatar Oct 21 '24 01:10 pkg-pr-new[bot]

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 avatar Oct 21 '24 01:10 thomasballinger

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?

thomasballinger avatar Oct 21 '24 02:10 thomasballinger