Contents
“Vibe coding” means describing what you want and letting an AI tool write the code. Getting a working preview is fast. Getting the same app online safely, on your own domain, takes a few deliberate steps that the tools often skip.
Before you start
- The project’s code, exported from the tool. Most have Export, Download ZIP or a GitHub connection.
- Node.js on your computer if the project contains a
package.json. - A hosting plan and a domain.
1. Find out what you built
| What you see in the project | App type | What it needs |
|---|---|---|
Only .html, .css and .js files |
Static site | Any hosting |
vite.config.*, React or Vue, no server folder |
Static after npm run build |
Any hosting |
next.config.* |
Next.js | A static export, or a Node.js app |
server.js, Express, an api/ folder |
Node.js app | Node.js hosting |
.php files, composer.json |
PHP or Laravel | PHP hosting |
requirements.txt, app.py |
Python (Flask, FastAPI) | Python hosting |
Not sure? Ask the tool: “What kind of app is this, and how is it built and started?” Each type has its own guide, for example Deploy a React app or Deploy Next.js.
2. Remove secrets before anything else
AI tools often paste keys straight into the code. Search for them:
grep -rnE "sk-[A-Za-z0-9_-]{10,}|api[_-]?key|secret|password|BEGIN PRIVATE KEY" --exclude-dir=node_modules .
- Move every secret to a
.envfile or the hosting’s environment variables, and read it withprocess.env.NAME(Node.js),getenv()(PHP) oros.environ(Python). - Make sure
.gitignorelists.envandnode_modules/. - Anything in front-end code is public. In Vite, variables that start with
VITE_end up in the browser bundle, so never put a secret there. A key for a paid API belongs on a server. - If a secret was ever committed or shipped to the browser, revoke it with the provider and create a new one. Deleting it from the code isn’t enough.
3. Put the code in Git
git init
git add .
git commit -m "First production version"
Push it to a GitHub repository, private if you like. Git gives you a history to roll back to and makes every deploy repeatable.
4. Build it the way production runs it
npm ci # installs exactly what package-lock.json lists
npm run build # creates dist/ (Vite) or .next/ (Next.js)
Fix every error before deploying: a build that works only in the tool’s preview will fail on the server too. For Vite, npm run preview serves the built version locally so you can click through it.
5. Deploy
Pick the route that fits:
- ZIP upload: for static builds, upload the contents of
dist/topublic_htmland extract them in File Manager. - From GitHub: connect the repository and add a
.cpanel.ymlthat copies the build into place (deploy from GitHub). - From your AI tool: connect Claude Code or Cursor to your hosting through Araby MCP and ask it to deploy, approving each step.
- Node.js or Python apps: create the app in Setup Node.js App or Setup Python App and set its environment variables there.
6. Connect the domain and turn on HTTPS
Point your domain to the hosting (connect a domain), wait for the free SSL certificate, then force HTTPS so every visitor gets the secure version. Replace any leftover http://localhost or preview addresses in the code and in services you use, such as sign-in redirect URLs and payment webhooks.
7. Check before you share the link
- Forms send, sign-up and sign-in work, and passwords are stored hashed, never in plain text.
- Pages work on a phone, and in Arabic as well as English if you offer both (check
dir="rtl"). - Errors show a friendly page, not a stack trace: debug mode is off (
APP_DEBUG=falsein Laravel, production mode in Node.js). - Admin pages require a login, and the database has a backup.
- Ask the AI to audit its own work: “List security problems in this project: exposed keys, missing input validation, unprotected routes.” Then verify each point yourself.
Troubleshooting
- A blank white page after upload: you uploaded the source instead of
dist/, or the build expects a different base path. Open the browser console;404errors on.jsfiles point to the path problem. - Pages open from the menu but show 404 on refresh: single-page apps need every route sent to
index.html. Add this.htaccessto the site folder (about 404 errors):
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
- API calls fail with CORS errors: the API doesn’t allow your real domain yet. Add it to the API’s allowed origins.
- It worked in the preview but not online: the preview had environment variables you didn’t copy. Add them on the server.
- Mixed content warnings: some images or scripts still load over
http://. Change them tohttps://.
On ArabyHost
Static sites and PHP apps run on the regular hosting plans, and Node.js and Python apps on the AI/Developer plans, with Node.js 20 and 24 and Python 3.9-3.12 through CloudLinux selectors. You can deploy by ZIP, from GitHub with cPanel Git Version Control and .cpanel.yml, or from Claude or Cursor through Araby MCP. Free SSL is issued automatically, every account is backed up daily with JetBackup, and the Araby AI assistant in the panel reads your error logs and explains what went wrong. If you’d like to keep building on the server itself, Claude Code and Codex run over SSH on the AI plans.
FAQ
Is code written by AI safe to publish?
It can be, but don't assume it. AI tools often leave keys in the code, skip input validation or leave debug output on. Work through the checklist in this guide, and ask a developer to review anything that handles payments or personal data.
Do I need Node.js hosting for a React or Vite app?
Usually not. A React or Vite app built with `npm run build` is a folder of static files that any hosting can serve. You need Node.js only when the app has its own server code, such as Next.js server features or an Express API.
My app uses Supabase or Firebase. Can I host the front end elsewhere?
Yes. The front end can live on your hosting and keep talking to Supabase or Firebase. Make sure only the public key is in the front end and that the database's access rules protect your data.