[▲ Vercel Community](/) · [Categories](/categories) · [Latest](/latest) · [Top](/top) · [Live](/live)

[Help](/c/help/9)

# 404 Error Issue

240 views · 11 likes · 6 posts


Vanlunatic (@vanlunatic) · 2025-02-24 · ♥ 1

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


system (@system) · 2025-02-24

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.

https://community.vercel.com/t/debugging-404-errors/437

A human should be around soon to offer more advice. But you can also get helpful information quickly by asking [v0](https://v0.dev/).


aruns (@aruns) · 2025-02-24 · ♥ 3

Hi Collins, could you tell us how your project is structured? What [JS framework](https://vercel.com/docs/frameworks) is it based on? If you could [share a minimal reproducible setup](https://vercel.com/guides/creating-a-minimal-reproducible-example), that'd be helpful too.


Amy Egan (@amyegan) · 2025-02-24 · ♥ 2

Looking at the output file structure for that app, I think you need to change the [output directory](https://vercel.com/docs/deployments/configure-a-build#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](https://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.


BestCodes (@bestcodes) · 2025-02-27 · ♥ 3

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:


Anshuman Bhardwaj (@anshumanb) · 2025-02-28 · ♥ 2

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.