website-builder-backend / frontend /scripts /12_production_app.sh
David Prince
fix: add all missing local module stubs (remote_mcp_registry, mcp_auth, mcp_transport, etc)
cce8120
Raw
History Blame Contribute Delete
912 Bytes
#!/usr/bin/env bash
set -euo pipefail
mkdir -p app
cat > app/page.jsx <<'EOC'
import WorkspaceLayout from "../components/layout";
export default function Page() {
return <WorkspaceLayout />;
}
EOC
cat > app/layout.jsx <<'EOC'
import "./globals.css";
export const metadata = {
title: "Dolor3V Studio",
description: "Production AI Workspace"
};
export default function RootLayout({ children }) {
return (
<html lang="en">
<body>{children}</body>
</html>
);
}
EOC
if [ ! -f app/globals.css ]; then
cat > app/globals.css <<'EOC'
html,
body{
margin:0;
padding:0;
width:100%;
height:100%;
background:#020617;
overflow:hidden;
font-family:Inter,Arial,sans-serif;
}
*{
box-sizing:border-box;
}
EOC
fi
echo "[1/6] Verify..."
test -f app/layout.jsx
test -f app/page.jsx
test -f app/globals.css
echo "[2/6] Building..."
npm run build >/dev/null
echo "[3/6] Production App installed."