Rob Thorne

Results 40 comments of Rob Thorne

> Turns out the preamble.js is not serve by the server Actually, if you're using vite-go, then the assets server code in the module will server the preamble. If you...

@fahmifan I've experimented a bit with @mengtongun's repo. The fun thing is that I just took his repo and did the following: * git clone the repo * cd into...

It's actually the same as with Vue or React. First, let's make sure you actually need vite-go. If you're developing a single page application where you're using a Go backend...

I'm assuming that go-gin exposes a REST backend (haven't used gin yet myself). So you probably just need to set up Vite as a proxy server for your gin API....

> Why is it optimal to proxy requests via vite? Mostly this prevents the browser from getting annoyed by cross-domain requests during development. You can certainly configure this yourself, but...

This looks like an excellent addition. Let me see if I can come up with a test with it; I'll add it to your PR. Thanks.

I'd need to check your code. Could you post it as a github repo? I've heard rumors that some versions of Vite may have trouble, but I'll need to try...

Sorry for the very long delay on my part. I've had the chance to get back to this. I started up your app by: * cloning the repo * cd...

I'm not too surprised, since IIRC vite is running in a separate process, using a program call `tmux`. To see any output created by the vite process, we could do...

I don't know if you can set this *before* installation, but once you've installed the plugin with ``` ddev get torenware/ddev-viteserve ``` the main config file for the plugin, `.ddev/.env`...