Trying to deploy using vercel from a Tailwind UI Template
Unanswered
Large Münsterländer posted this in #help-forum
Large MünsterländerOP
I'm a first time Next and Tailwind user and I'm trying to deploy a project. I am using one of their premade templates with a bit of customization to components, but my changes are purely cosmetic. When I try to deploy with vercel, it gives me the error message pictured (related to my output directory). It seems to want a "public" directory. Is this the same thing as my src directory or is there something different I'm not understanding?
16 Replies
You need to have a
/public directory at the root of your projects. The files that you put in there will be deployed at the root of your domain, for example the file /public/image.png will be available at yourdomain.com/image.pngTake a screenshot of your project directory structure and attach it here
Large MünsterländerOP
Thanks for the response. Here is the project structure
Large MünsterländerOP
@not-milo.tsx (sorry if it’s not cool to ping people here I’m new to this discord and still feeling it out)
Yup, you're missing a
/public directory. Create one on the same level as your package.json file and the error message will disappear.Large MünsterländerOP
Does anything in particular need to be in that directory?
As for the ping, it's not really necessary if someone's already subscribed to a thread. I already get notified when new messages come in.
Don't worry tho, the only unacceptable pings are those made to people not invved in the convo.
Don't worry tho, the only unacceptable pings are those made to people not invved in the convo.
Large MünsterländerOP
Very much appreciate the etiquette tip as well
@Large Münsterländer Does anything in particular need to be in that directory?
Not really, but usually it's where you put your favicon and static assets like images and co
Large MünsterländerOP
Great I’ll give that a shot real quick
Let me know how it goes
Large MünsterländerOP
That built which is good news but now it's giving me a 404 instead of my website (either way progress!)
To clarify, it's the vercel not found, rather than the not found I have in my app
Good, at least the original issue is gone. If you need more assistance you can open up a new thread with the relevant information ðŸ‘ðŸ»
Large MünsterländerOP
Can do. Thanks a lot for your help!
No problem ✨