lj
lj
CDCloudflare Developers
Created by barab. on 7/22/2024 in #pages-discussions
Hey, I've deployed a Sveltekit project
https://discord.com/channels/595317990191398933/799437470004412476/1276090495319146551 we disscuess the SPA way that you can only run vite enough.:bibicat:
5 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 8/22/2024 in #wrangler
In your Framework. Then when you run the
This is the essence of this matter.
25 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 8/22/2024 in #wrangler
In your Framework. Then when you run the
To get closer to the truth, he got it from the result after wrangler was executed
25 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 8/22/2024 in #wrangler
In your Framework. Then when you run the
Yes, I'm just making an analogy. It's actruly in vite.config.
25 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 8/22/2024 in #wrangler
In your Framework. Then when you run the
Who's the boss:dogekek:
25 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 8/22/2024 in #wrangler
In your Framework. Then when you run the
wrangler pages dev --proxy [vite_url] ==> vite --prxoy [wrangler_url]belike :dogekek:
25 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 8/22/2024 in #wrangler
In your Framework. Then when you run the
That means some trans the proxy function from wrangler to vite:lul:
25 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 8/22/2024 in #wrangler
In your Framework. Then when you run the
That just do what you said. Auto proxy the request redirect to wrangler. I'll try it now. Thanks!
25 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 8/22/2024 in #wrangler
In your Framework. Then when you run the
Yes. It sounds good. Will the develop way comes better?😆 I'm studying remix now. Maybe that's a good way. Thanks for explain!
25 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 8/22/2024 in #wrangler
In your Framework. Then when you run the
Thanks! https://github.com/TorchAuth/vite-plugin-wrangler-spa is realy fine for me. But there throw an error from wrangler.😆
25 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 8/22/2024 in #wrangler
In your Framework. Then when you run the
when use --proxy is a good way that wrangler handle the Functions and vite provide the assets. But that's gone.
25 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 8/22/2024 in #wrangler
In your Framework. Then when you run the
This plugin allows both the React SPA and Cloudflare functions to run with LiveReload locally, and at the same time. This solves a major pain point that currently exists, where you cannot work locally with LiveReload for the React project, you are forced to use preview. This plugin allows both the React SPA and Cloudflare functions to run with LiveReload locally, and at the same time.
25 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 8/22/2024 in #wrangler
In your Framework. Then when you run the
getPlatformProxy is used by 'who serve the front end'? That means vite should do this but not wrangler?
25 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 8/22/2024 in #wrangler
In your Framework. Then when you run the
The final target is use one server that can use bindings local and hot reload from React source file changed.
25 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 8/22/2024 in #wrangler
In your Framework. Then when you run the
I use react+vite+tailwinds to generate SPA. Now I want let it save something. When I use vite dev the SPA works ok but the Functions can't work. The Function work depends on the wrangler pages dev. What if vite can do this? I found this https://github.com/TorchAuth/vite-plugin-wrangler-spa, but it's not work good.
25 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 8/22/2024 in #wrangler
In your Framework. Then when you run the
Is that means if I'm not the framework developer, it's no use for me?
25 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 8/22/2024 in #wrangler
In your Framework. Then when you run the
I already have the context.env in Functions, what's the getPlatform use for?
25 replies
CDCloudflare Developers
Created by Hello, I’m Allie! on 8/22/2024 in #wrangler
In your Framework. Then when you run the
SPA->fetch->Functions{kv=islocal?getPlatform:context.env}->response to SPA ?
25 replies