Makisuo
Makisuo
Explore posts from servers
CDCloudflare Developers
Created by Makisuo on 4/11/2024 in #pages-help
NextJS Dev Server keeps on crashing with D1
Randomly crashing when hot reloading, if there is a any syntax error while hot relaoding it's guranteed to crash with this error, if not it seems to be a 50/50. Anyone experience this?
tRPC failed on <no-path>: Invalid state: Controller is already closed
/node_modules/.pnpm/wrangler@3.48.0/node_modules/wrangler/wrangler-dist/cli.js:29573
throw a;
tRPC failed on <no-path>: Invalid state: Controller is already closed
/node_modules/.pnpm/wrangler@3.48.0/node_modules/wrangler/wrangler-dist/cli.js:29573
throw a;
1 replies
DTDrizzle Team
Created by Makisuo on 11/10/2023 in #help
Extracting the Query "With" Type
As title said I'm trying to extract the with type of a query, I tried out a bunch of stuff with no luck so far.
const query = db.user.findFirst({ with: This Type})
const query = db.user.findFirst({ with: This Type})
4 replies
CDCloudflare Developers
Created by Makisuo on 8/17/2023 in #pages-help
TCP connection possible in NextJS?
Since cloudflare supports tcp connections on workers is it somehow possible to use tcp connections in NextJS
1 replies
TtRPC
Created by Makisuo on 7/9/2023 in #❓-help
NextJS 13 Build failing
Issue also seen in this PR  https://github.com/trpc/trpc/pull/4574 I found. None of the webpack workarounds seem to work for me to get it building again. Any updates on this?
1 replies
CDCloudflare Developers
Created by Makisuo on 6/13/2023 in #pages-help
NextJS Monorepo Setup
Is it possible to deploy a NextJS app from a turbo monorepo
3 replies
CDCloudflare Developers
Created by Makisuo on 6/11/2023 in #workers-help
Cloudflare Worker Rust Tail Worker
Is it possible to set a rust worker as a tail worker?
3 replies
CDCloudflare Developers
Created by Makisuo on 6/10/2023 in #workers-help
Worker always returns 200 with Hono
Not sure if this is the right place for this but, No matter what status I return it doesnt it seem to default to 200. when using new Response() it works without any issues. What am I doing wrong?

return c.json({
body: {
status: "404",
message: "No source found with that id",
},
status: 404,
})

return c.json({
body: {
status: "404",
message: "No source found with that id",
},
status: 404,
})
3 replies
CDCloudflare Developers
Created by Makisuo on 6/7/2023 in #workers-help
Best Approach for partial retrying
Was wondering what the best approach for my retry problem would be in cloudflare workers since haven't been using them for too long. I have a worker that does some things like creating a unique event id etc fetches the right project requested etc, then I send all that data via a fetch request, now I would like if that fetch request fails. To just retry the fetch on a delay. What would be the best implementation for this? Having a Service Worker that just does the fetch request with and DO Alarm? Or is there a better way?
1 replies
RRailway
Created by Makisuo on 5/31/2023 in #✋|help
Postgres/Redis Super Slow
Was always really interested in railway but always get off it again really quickly since performance of my microservices and databases is always super low. Do I need to configure something, am i doing something wrong?
7 replies
CDCloudflare Developers
Created by Makisuo on 5/29/2023 in #pages-help
Error On Build: Failed to publish your Function. Got error: multipart: message too large
16 replies
RRailway
Created by Makisuo on 5/19/2023 in #✋|help
Trying to use the Lago Template
After about 20 seconds I'm getting the error "Looks like something went wrong and the train derailed", It should fork two repositories, Lago-API doesnt get forked for me, so the API is not getting deployed
6 replies
CDCloudflare Developers
Created by Makisuo on 5/18/2023 in #pages-help
Weird Pages NextJS build error
Cant really make it what is wrong with it, its quite a simple app, with nothing fancy going on aswell. Error logs are attached
37 replies
DTDrizzle Team
Created by Makisuo on 4/3/2023 in #help
Help improving my query
2 replies
DTDrizzle Team
Created by Makisuo on 3/30/2023 in #help
Question: Wouldnt it make sense for value to be automatically notNull if you set a default
Right now you would need to use notNull().default(true), is there a reason for it be still nullable with just default?
3 replies