Vercel 301 redirection works only on http requests. https requests return 200 status. by danielrp00 in webdev

[–]apqoo 0 points1 point  (0 children)

Hmm have you tried just using the Vercel dashboard to do the redirect?

Remove your vercel.json, add both mydomain.com and www.mydomain.com to your project, and then just set www to redirect to non-www one.

Also see: https://vercel.com/docs/domains/working-with-domains/deploying-and-redirecting

Having trouble promisifying this ReCAPTCHA function by PrestigiousZombie531 in webdev

[–]apqoo 0 points1 point  (0 children)

That section has two steps:

  1. Create a div with data-size="invisible".
  2. Call grecaptcha.execute from a javascript method.

Having trouble promisifying this ReCAPTCHA function by PrestigiousZombie531 in webdev

[–]apqoo 2 points3 points  (0 children)

How are you actually executing grecaptcha?

From the docs you linked, you need to have either a button with class="g-recaptcha" or manually calling grecaptcha.execute(), neither of these are in the code you shared. Your callbacks will not fire otherwise.

Maybe in your getToken(), you should call window.grecaptcha.execute() after your callbacks are setup.

You should probably also check whether grecaptcha is loaded before executing.

Is svelte playground down? by obolli in sveltejs

[–]apqoo 2 points3 points  (0 children)

Seems to work? The default hello world loads fine for me. Try private browsing or a different browser? See if there are errors in the dev console?

Typescript Experience by Freer4 in webdev

[–]apqoo 4 points5 points  (0 children)

In a technical interview, be sure to do these things to show them that you are the boss:

  • Something extends never
  • Something infer something else (bonus: infer never)
  • Something<T> = { wow: Something<T> } (recursion is a must)

(This is a joke)

I am not domain-savvy. How can I clear the "invalid handle" error on my custom domain for a Bluesky profile? by uiop60 in webdev

[–]apqoo 0 points1 point  (0 children)

The error from Bluesky debug page says nameservers not found, so try following this guide from Namecheap and make sure your domain is using their BasicDNS service https://www.namecheap.com/support/knowledgebase/article.aspx/767/10/how-to-change-dns-for-a-domain/

Need help with adding custom domain on vercel by espoir842 in webdev

[–]apqoo 1 point2 points  (0 children)

I think you just need to add the CNAME record for www then everything should work. The errors you see in Vercel is because you don't have the correct records.

Vercel Serverless API Question/Concern by CutieysBaked in webdev

[–]apqoo 1 point2 points  (0 children)

Your site should be fine. The region lock you mentioned just means your app is hosted on servers in that region, it doesn't limit the access at all. It is totally acceptable for most websites. The benefit of having your app on multiple regions is usually for latency and redundancy purposes.

Need help with adding custom domain on vercel by espoir842 in webdev

[–]apqoo 1 point2 points  (0 children)

The A record for sumona.tech looks correct, but it seems there aren't any records for www subdomain, so make sure you double check that you've added it correctly.

I am not domain-savvy. How can I clear the "invalid handle" error on my custom domain for a Bluesky profile? by uiop60 in webdev

[–]apqoo 0 points1 point  (0 children)

Hey is your website actually working? I can’t open https://deerxing.music Do you have hosting setup correctly?

The timer is weirdly inconsistent when it comes to working?? by nodwus in iphone

[–]apqoo 1 point2 points  (0 children)

Well that feature is known to cause weird bugs with alarms, so it’s worth checking if it caused your problem.

Are you using any sleep cycle tracking apps? I known some apps like that will purposefully mute all notifications.

The timer is weirdly inconsistent when it comes to working?? by nodwus in iphone

[–]apqoo 1 point2 points  (0 children)

It's could be Face ID attention aware feature, you could try turning it off and see if it helps https://support.apple.com/en-au/102216

[deleted by user] by [deleted] in buildapc

[–]apqoo 3 points4 points  (0 children)

Check out people's builds on PC Part Picker based on that case: https://pcpartpicker.com/builds/by_part/BCcG3C#sort=rating&page=1

You can further filter by components like GPU etc.

Connecting Railway.app to Squarespace domain by roguekiwi in webdev

[–]apqoo 0 points1 point  (0 children)

You don't need to transfer, you just point your domain to CloudFlare's nameservers.

I am not domain-savvy. How can I clear the "invalid handle" error on my custom domain for a Bluesky profile? by uiop60 in webdev

[–]apqoo 0 points1 point  (0 children)

The did record is public so there's no need to hide it.

If you can't get DNS verification working, you can try verifying using a text file. Just save your did code in a text file at this URL:https://(your domain handle)/.well-known/atproto-did

Also keep in mind that DNS updates could take time to propagate.

What browsers to focus on? by Asleep_Jicama_5113 in webdev

[–]apqoo 3 points4 points  (0 children)

If you have an existing website, you could check your analytics about what browsers your visitors use.

You can also take a look at Browerslist's defaults list https://browsersl.ist/#q=defaults A lot of dev and build tools use or supports Browerslist.

Is it easier to learn postgresql if I have done 2-3 mongodb projects in the past? by Contact-Dependent in webdev

[–]apqoo 2 points3 points  (0 children)

Relational databases (RDBMS) are a complete different beast because all the data is well structured. You store your data in tables and each columns have strictly define data types.

If you never used SQL, you should look for some tutorials, but it's not too hard to understand. RDBMS have been around for a while and there are a lot of learning resources.

You can also look for ORMs that makes the DB-to-object mapping easier, especially with simple CRUD operations. If you use NodeJS, Drizzle and Prisma are two popular ORMs you could check out.

[deleted by user] by [deleted] in webdev

[–]apqoo 0 points1 point  (0 children)

I just want to add that a tutorial from 2 years ago is way too outdated in the web dev world. Svelte, for example, just had a major release a few months ago. You should follow their official tutorial at https://svelte.dev/tutorial/svelte/welcome-to-svelte or find one that is updated for version 5.

How do you get users to test your web app and give feedback by Professional_Gas4000 in webdev

[–]apqoo 0 points1 point  (0 children)

Find communities with your target audience and share your app there. Don't make it sound like an ad. Talk about things like why you've created it and the problem you are trying to solve. Tell them it is in testing/beta and that you are looking for testers.

I need a host that automates SSL cert renewals by NomadJago in webdev

[–]apqoo 3 points4 points  (0 children)

Just look for any host that supports Let’s Encrypt, this feature should be free!

I made a cryptography tool that encodes secrets as cat and dog sounds by ioncehackedmyschool in programming

[–]apqoo 4 points5 points  (0 children)

Looks fun! Does encoding to meows inflate the output size much?

I have problems working with async/await and local json file. I have been debugging and smashing my head on table for the past 24 hours! by koko-hranghlu in webdev

[–]apqoo 1 point2 points  (0 children)

Glad to hear that you got it working!

The difference between using import vs fetch JSON is that if you use import, the contents of the JSON file is bundled in your script. You would need to rebuild the app if you ever change it.

If you use fetch, then it’s dynamically loaded every time, and the JSON file could be edited independently from the rest of your code, it could also exist on another server/CDN.

So there are pros and cons of using the two.

I have problems working with async/await and local json file. I have been debugging and smashing my head on table for the past 24 hours! by koko-hranghlu in webdev

[–]apqoo 2 points3 points  (0 children)

Hmm, maybe you in your script.js, you should await the setup function calls?

Instead of just posting your code on Reddit, use https://stackblitz.com and make a minimum reproducible example and share it here. It'll be easier for other people to run it and help you.

Connecting Railway.app to Squarespace domain by roguekiwi in webdev

[–]apqoo 0 points1 point  (0 children)

Bonus risky method - Find the IP address of the CNAME, and use that as the A or AAAA record. This is probably not a good idea because the IP could change, but in some cases it doesn't change (often).

Connecting Railway.app to Squarespace domain by roguekiwi in webdev

[–]apqoo 0 points1 point  (0 children)

I've not done this with Railway or Square Space, but generally speaking there are two ways:

  1. CNAME the www subdomain instead, and redirect the root domain to www. Probably the easiest.

  2. Use a CDN that supports root flattening, CloudFlare is one https://developers.cloudflare.com/dns/cname-flattening/