Templated Needed for Dub.co
dheerajydv19
HOBBYOP

2 months ago

Dub.co is a popular and currently the best link attribution platform that supports conversion tracking. I tried to deploy it myself but am facing issuing in it as it's monorepo and i don't have much experience in coding and deployment too.

I will be happy to pay a small amount to anyone who can help me in it's deployment. Also, you can make this template and others will also be able to use this which will a decent bounty for you at no extra efforts.

Github - https://github.com/dubinc/dub

$100 Bounty

19 Replies

Railway
BOT

2 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


brody
EMPLOYEE

2 months ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open brody 2 months ago


noahd
EMPLOYEE

2 months ago

Loudbook and I have started work on this


noahd

Loudbook and I have started work on this

dheerajydv19
HOBBYOP

2 months ago

Thanks, buddy, let me know when you complete it, i will be happy to try and report any issue if arise.


irazvan2745
PRO

2 months ago

Dub analystics are using a SaaS, cannot be fully selfhosted on railway


irazvan2745
PRO

2 months ago

Also the databases are using a SaaS, upstash sdk, which cannot be selfhosted


I also literally cannot get their repository to compile.


irazvan2745
PRO

2 months ago

Exactly, its an app made for vercel and other similar apps, practically impossible unless you make a massive codebase change


brody
EMPLOYEE

2 months ago

Well, the bounty is there until someone presents a quality template that isn't a fork.


irazvan2745
PRO

2 months ago

its not possible without external services


irazvan2745

Also the databases are using a SaaS, upstash sdk, which cannot be selfhosted

dheerajydv19
HOBBYOP

2 months ago

I understand that there are some dependencies that can't be self-hosted, like Upstash, Cloudflare R2, etc, and that's totally ok. You can define those as environment variables wherever self-hosting is not possible.

I want a template that makes the deployment easy. I already have all dependencies ready, but I am still unable to host the application on Railway. It's a monorepo, and I don't have much coding experience, and in deployment too.


noahd

Loudbook and I have started work on this

dheerajydv19
HOBBYOP

2 months ago

Hey buddy, any update?


brody
EMPLOYEE

2 months ago

Yep, as OP said, I don't expect the template to self host the external dependencies that dub requires, they can be be input as environment variables.


dheerajydv19

Hey buddy, any update?

noahd
EMPLOYEE

2 months ago

Have been working on job related things unfortunately so I have been unable to work too much. Working n it now though and will make progress over the day.


noahd
EMPLOYEE

2 months ago

Hey dheerajydv19.
Building the plain image from the dub repo does seem to be outputting this weird error. I wonder if we can disable type checking based on an ENV flag to make building on Railway better.
Doing a bit more investigating with this before I give a solid "this doesnt work" but it might involve some config being PRed into the project if that's alright.

Attachments


brody

Yep, as OP said, I don't expect the template to self host the external dependencies that dub requires, they can be be input as environment variables.

irazvan2745
PRO

2 months ago

might aswell just use dub directly atp, anyways, good luck noah and loudbook


noahd
EMPLOYEE

2 months ago

Yeah it looks like it is quite a bit more complex to create then I would hope. I think I'll pass on working on it (too much time to be worth the bounty) but Loudbook is probably still interested.


noahd
EMPLOYEE

2 months ago

So I did more looking into this and unfortunately the dub codebase currently has an error which wont allow you to build.
Apps > web > app > (ee) > api > cron > groups > create-default-links > routes.ts 149:17
Are you or any of the dub maintainers able to shed some light on this or fix in your end?

It also looks like the previews deployments are also all failing as of ~8 hours ago


noahd

Hey dheerajydv19. Building the plain image from the dub repo does seem to be outputting this weird error. I wonder if we can disable type checking based on an ENV flag to make building on Railway better. Doing a bit more investigating with this before I give a solid "this doesnt work" but it might involve some config being PRed into the project if that's alright.

dheerajydv19
HOBBYOP

2 months ago

Hey, i am not a maintainer of dub, i am just a normal user trying to use that open-source project into one of my project. You can submit a PR but it's acceptance is not in our control.


noahd

So I did more looking into this and unfortunately the dub codebase currently has an error which wont allow you to build. Apps > web > app > (ee) > api > cron > groups > create-default-links > routes.ts 149:17 Are you or any of the dub maintainers able to shed some light on this or fix in your end? It also looks like the previews deployments are also all failing as of ~8 hours ago

dheerajydv19
HOBBYOP

2 months ago

I also came across these issues, and some problems got fixed when you use the correct package version.

Package Version
node v23.11.0
pnpm 9.15.9

The project is not building correctly locally - verify your versions of node and pnpm Match the recommended versions above. Delete all node_modules, .next, and .turbo directories in the apps and packages directory. You may now reinstall node_modules by running pnpm install and attempt to rebuild the project with pnpm build.

Some issues will get fixed by doing this, some will still remain, which I don't know how to resolve. I mostly code in Python and am new to frontend.


Loading...