404 Error Issue

Hi! I am trying to use Vercel for the first time to deploy a basic site that calls back to the OpenAI API, but I keep getting a 404 error. My domain is below:

https://arlington-heist.vercel.app/

I’ve gone through the 404 error guide but can’t figure out what I’m doing wrong.

Thanks!

Collins

1 Like

There’s another community post with 404 debugging tips that might be helpful. Please give these solutions a try and let us know how it goes.

A human should be around soon to offer more advice. But you can also get helpful information quickly by asking v0.

Hi Collins, could you tell us how your project is structured? What JS framework is it based on? If you could share a minimal reproducible setup, that’d be helpful too.

3 Likes

Looking at the output file structure for that app, I think you need to change the output directory or other build configuration. I see what I think is the homepage of your app at the path arlington-heist.vercel.app/openAI_deploy-main

I don’t have the source code, so I can’t say for sure what needs to be adjusted. You may just need to set openAI_deploy-main as the output directory in project settings. If it turns out that a different config change is needed, we can still help. Just give us some more info about your app or share a public repo like @aruns suggested.

2 Likes

I looked at the page and I see it is working now :slight_smile:

I was a bit concerned about the security, though. You might want to add some kind of authentication or something. Right now, I can just make a POST to https://arlington-heist.vercel.app/api/index and effectively use your API key at no cost to me. :grimacing:
Hopefully I’m not being too picky :stuck_out_tongue:

3 Likes

Hi @bestcodes, glad that it’s working now. For security and safety, it’s better to implement some authentication logic in the API handler. Remember web applications are always accessible (when deployed on the internet), so it’s up to the developers how they prevent abuse.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.