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?
#Trying to deploy using vercel from a Tailwind UI Template
17 messages · Page 1 of 1 (latest)
🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord
🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize
✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)
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.png
Take a screenshot of your project directory structure and attach it here
Thanks for the response. Here is the project structure
@queen talon (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.
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.
Very much appreciate the etiquette tip as well
Not really, but usually it's where you put your favicon and static assets like images and co
Great I’ll give that a shot real quick
Let me know how it goes
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 👍🏻
Can do. Thanks a lot for your help!