andobando

joined 2 years ago
[–] andobando 2 points 2 years ago (3 children)

Can you move the server name to an .env variable so I don’t have to run a sed? sharing my sed:

Yes, definitely will do.

On desktop browser, I’m getting a ‘500 internal error’ on the /r/post/xxx route, but not sure why. The console isn’t showing anything. The page.server.js seems to get the JSON fine from the API, but the .svelte file in that route is failing.

I think I know this issue. When clicking a post from the front page it stores the post so upon landing on /post/xxx it doesn't have to refetch that data. It fetches the comments on /post/xxx but not the post itself. Just need to fetch the post itself if someone lands directly on that page.

[–] andobando 2 points 2 years ago* (last edited 2 years ago)

I think it should still be possible. Cors is enforced by browsers, not server side. Meaning your client cant make a request to lemmy.worlds backend BUT, your client can make a request to your backend which can make a request to lemmy.worlds backend.

The site I have this hosted on is actually connected to lemmy.world, not my instance

[–] andobando 5 points 2 years ago* (last edited 2 years ago) (2 children)

I love SvelteKit. I am a backend dev myself, but this framework made me really get into UI development, just so much easier.

What do you mean by the cors restrictions? I am hosting the front end on the same domain as my backend (just like the lemmy UI) so there shouldn't be any issues there.

[–] andobando 3 points 2 years ago

I just replaced it with images, I apologize.

[–] andobando 6 points 2 years ago* (last edited 2 years ago)

Not my intention, I was referring to myself as the .dev extension is short for developer but understood Ill just remove the link

[–] andobando 6 points 2 years ago (4 children)

For what its worth, the domain has nothing to do with the project. Its just my personal site for testing

[–] andobando 3 points 2 years ago

No need to be pro. Can always make a pull request and get feedback, good way to learn so if you're feeling up for it at all give it a shot!

[–] andobando 1 points 2 years ago* (last edited 2 years ago) (2 children)

Thanks for looking! I was just restarting it, should work now. Preview isn't much yet, much much work to do.

[–] andobando 1 points 2 years ago

Yeah I can see that. I am just struggling to understand why anyone would care. For social media like instagram I understand, but its an anonymous handle no one gives a shit about or recognizes, so I don't see why someone would be attached to it.

[–] andobando 8 points 2 years ago (1 children)

I like this about the reddit UI where you can click anywhere on the vertical bar to collapse them. Collapse should be easier than the tiny button imo

[–] andobando 1 points 2 years ago (1 children)

Change websockets to what, http? Its definitely a strange choice to be using websockets

[–] andobando 2 points 2 years ago

I mean you don't have to link people to join-lemmy. We can just link them to lemmy.ml or whatever and using it is exactly like reddit.

view more: ‹ prev next ›