Josh
Josh
HHono
Created by Josh on 1/12/2025 in #help
Question on vite build with node server
I would highly recommend some of Scott's tutorials. Ive gone through some of his other courses and they were pretty good, and it looks like his entire video library is free now, it used to require a subscription. I know he really likes svelte and the levelup website itself is written in svelte. https://levelup.video/library?tags=svelte#library-grid
55 replies
HHono
Created by Josh on 1/12/2025 in #help
Question on vite build with node server
yes its very different than react. the main reason I'm even interested in it is to help keep up with web standards/vanilla js
55 replies
HHono
Created by Josh on 1/12/2025 in #help
Question on vite build with node server
Ah, I think last time I had looked, solid was very similar to react in terms of api and jsx, and svelte is more web native without the jsx.
55 replies
HHono
Created by Josh on 1/12/2025 in #help
Question on vite build with node server
I think its just a time vs. reward balancing on my side. Remix works well for most of the project I do, and I've been doing some shopify app development which is all based on remix now, so learning another meta framework is low on my priority list currently unless I have a specific use case.
55 replies
HHono
Created by Josh on 1/12/2025 in #help
Question on vite build with node server
i haven't tried solid or svelte yet. If I had to pick I would probably try svelte first.
55 replies
HHono
Created by Josh on 1/12/2025 in #help
Question on vite build with node server
yes - vercel with a bunch of next.js features locked behind it was also a big turnoff for me.
55 replies
HHono
Created by Josh on 1/12/2025 in #help
Question on vite build with node server
yeah we will see what happens with it. I'm waiting for it to be out of beta before I even try it.
55 replies
HHono
Created by Josh on 1/12/2025 in #help
Question on vite build with node server
yes its also pretty new
55 replies
HHono
Created by Josh on 1/12/2025 in #help
Question on vite build with node server
I think if I had to pick up a new meta framework, it would be tanstack start. everything Tanner publishes just works.
55 replies
HHono
Created by Josh on 1/12/2025 in #help
Question on vite build with node server
yeah i got next.js fatigue from all the new features and was tired of keeping up with everything
55 replies
HHono
Created by Josh on 1/12/2025 in #help
Question on vite build with node server
remix has been my goto lately. really like the loader/action patterns.
55 replies
HHono
Created by Josh on 1/12/2025 in #help
Question on vite build with node server
Hm interesting, I'm just getting into hono, I mainly wanted it for rpc + openapi spec generation. Too many meta frameworks to keep up with
55 replies
HHono
Created by Josh on 1/12/2025 in #help
Question on vite build with node server
TY for trying to help though 🙂
55 replies
HHono
Created by Josh on 1/12/2025 in #help
Question on vite build with node server
Yeah, theres just not a lot of docs on the @hono/vite-build repo once the package is built. TBH I kind of gave up and just set it up as a cloudflare worker with wrangler and everything is working.
55 replies
HHono
Created by Josh on 1/12/2025 in #help
Question on vite build with node server
I had just a single .env file. The dev script worked fine, but whenever I built the app nothing was showing on either process.env or the vite specific import.meta.env object. These were the scripts (this was also in a turbo/monorepo if that makes a difference):
"dev:node": "dotenv -e ../../.env -- tsx watch src/index.ts",
"start": "dotenv -e ../../.env -- node dist/index.js",
"dev:node": "dotenv -e ../../.env -- tsx watch src/index.ts",
"start": "dotenv -e ../../.env -- node dist/index.js",
55 replies
HHono
Created by Josh on 1/12/2025 in #help
Question on vite build with node server
So mini update. I refactored the app to use wrangler + cloudflare and I can inject the wrangler.toml vars onto the context on both dev + deployed server no problem. Still unsure why I can't add environment vars to vite build and think I'm just going to skip the node server for now.
55 replies
TtRPC
Created by MadaShindeInai on 9/6/2023 in #❓-help
tRPC in Next without api rotes
When next builds you still get a client and server so there has to be a way to talk between the two over the web. Regardless of which solution you go with you will need to use API routes or some other method to reach the server so this isn't just a problem with tRPC. You are probably best of creating some type of api key / middleware which will reject unauthenticated requests.
3 replies