kstulgys
kstulgys
Explore posts from servers
CDCloudflare Developers
Created by kstulgys on 8/27/2024 in #general-help
Your Worker exceeded the size limit of 1 MiB
No description
2 replies
RRailway
Created by kstulgys on 8/12/2024 in #✋|help
Failed to deploy nextjs app that is using turborepo
No description
6 replies
DTDrizzle Team
Created by kstulgys on 11/4/2023 in #help
No id returned (mysql2)
async function create(data: NewBusiness) {
return client.insert(business).values(data)
}
async function create(data: NewBusiness) {
return client.insert(business).values(data)
}
returns
headers: [],
types: {},
fields: [],
rows: [],
rowsAffected: 1,
insertId: '0',
size: 0,
statement: ...
headers: [],
types: {},
fields: [],
rows: [],
rowsAffected: 1,
insertId: '0',
size: 0,
statement: ...
I need Id. Tried to add .execute() a the end but same thing.
4 replies
DTDrizzle Team
Created by kstulgys on 10/24/2023 in #help
'token' used in key specification without a key length
Apparently I need to use token: varchar("token", { length: 255 }) because token: text("token") giving issues when pushing. Why? I'm using drizzle with planetscale.
1 replies
DTDrizzle Team
Created by kstulgys on 10/24/2023 in #help
ER_TABLE_EXISTS_ERROR
Can someone explain me what is the proper workflow? 1. change schema.ts (add another column to table) 2. generate migration 3. migrate ER_TABLE_EXISTS_ERROR Why? I'm using drizzle with planetscale
7 replies
TtRPC
Created by kstulgys on 10/20/2023 in #❓-help
Why webhooks does not work with TRPC?
I have a what suppose to be a webhook:
deposit: publicProcedure.input(z.any()).mutation(async ({ ctx, input }) => {
console.log(input);
return { input };
}),
deposit: publicProcedure.input(z.any()).mutation(async ({ ctx, input }) => {
console.log(input);
return { input };
}),
When I POST to this endpoint it responds with:
{
"result": {
"data": {
"json": {
"input": null
},
"meta": {
"values": {
"input": [
"undefined"
]
}
}
}
}
}
{
"result": {
"data": {
"json": {
"input": null
},
"meta": {
"values": {
"input": [
"undefined"
]
}
}
}
}
}
Why? console logs undefined on the server.
10 replies
RRailway
Created by kstulgys on 10/16/2023 in #✋|help
Is railway.app enough for my app? I know nothing about databases and scaling.
Let's say i'm building a banking app with nextjs and I have an endpoint /api/send-transaction This is POST endpoint and takes sender and recipient details with amount. The future for this endpoint is that it will be used by thousands of people per day. I know about severless and edge functions, but do I need them? Should I deploy to railway or aws with https://open-next.js.org/ ? What's the difference? What is cheaper and scales better for my use case? FYI: I know I'm naive to expect a straight forward answer to this.
4 replies
RRailway
Created by kstulgys on 10/12/2023 in #✋|help
not prefixed with / or ./ or ../
I'm deploying nexths 13 app and getting this error: error: Relative import path "@/types/collections" not prefixed with / or ./ or ../
12 replies
RRailway
Created by kstulgys on 9/24/2023 in #✋|help
Multiple services found. Please specify a service to deploy to
These are my last lines of github action:
- name: Deploy
run: railway up
env:
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
- name: Deploy
run: railway up
env:
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
I recently introduced a new service (grafana) along side my nextjs app and when I deploy I get this error: Multiple services found. Please specify a service to deploy to How should I change railway up command so it deploys only my nextjs app?
6 replies
RRailway
Created by kstulgys on 5/15/2023 in #✋|help
I want to deploy a nextjs website for a client
I wan to to deploy a nextjs website for a client. I'm thinking what is the best way to do this. This website should live under his account with his card details. Since this is only one website I do not want him to create a team and invite me and pay $20/mth just to have a team. Is there a better way to do this?
6 replies
RRailway
Created by kstulgys on 11/2/2022 in #✋|help
Can I deploy pocketbase to railway?
I came across this https://pocketbase.io/ oss backend and would like to spin it on railway? Can I deploy pocketbase to railway? What should I know?
18 replies
RRailway
Created by kstulgys on 10/4/2022 in #✋|help
aws lambda and server api endpoint deployed on railway pricing
The endpoint is a scraper with puppeteer. Just scrapes some data and returns result. Expected to be called 10000 times a month. Every call on average would run for 5s a) endopint is hosted as lambda on aws b) endpoint is hosted on railway.app as express server Can anyone help me to build and intuition how these two cases would compare in pricing?
4 replies
RRailway
Created by kstulgys on 10/2/2022 in #✋|help
is there a way to have database on prod but delete database only on dev environment?
I want to use render.com postgresql database on dev environment because it's free
6 replies
RRailway
Created by kstulgys on 10/1/2022 in #✋|help
how do you compare with render.com?
What are the main differences pricing wise? Postgresql db, server, web hosting?
22 replies
RRailway
Created by kstulgys on 9/28/2022 in #✋|help
How does Strapi connects to postgresql?
I just deployed strapi template but I don't see how strapi connects to the database?
7 replies
RRailway
Created by kstulgys on 9/19/2022 in #✋|help
Can I host any (non tech) user site on railway?
The idea is that a user would click and deploy a site. It's like shopify platform but simplified I need a user to be able to: - add env variables - change domain name etc... Does railway provide api integration for this? Does my question make sense?
9 replies