Can i use PostgreSQL with it and still create an export from it? (So just use out folder on shared hosting server)
Unfortunately, no - you cannot use PostgreSQL with a static export (output: 'export'). Here's why:
Static Export Limitations:
Your Options:
| Approach | Database | Hosting | Best For |
|---|---|---|---|
| Static Export | No | Shared hosting, CDN | Simple portfolios, no dynamic data |
| Vercel/Netlify | Yes (PostgreSQL, Neon, etc.) | Serverless | Dynamic apps with database |
| Build-time data | Yes (at build only) | Shared hosting | Content that rarely changes |
For your portfolio specifically:
Since it's a portfolio with static sections (hero, services, projects, team, contact), you likely don't need a database. The current SSR/SSG setup works perfectly on Vercel.
If you want to use shared hosting, I can convert it to a fully static export:
// next.config.mjs
const nextConfig = {
output: 'export',
};This will generate an out folder you can upload to any shared hosting.
However, you'd lose:
Would you like me to:
Create new component for sending messages as a chat bubble at bottom right side of page (pos fixed) where user clicks on it and it opens (expand) and then user can send his message just like homepage form abd with proper success style message after send.
Now I'll create the chat bubble component and add it to the page:
Now let me add the chat bubble to the main page: