Skip to content

Commit 8a23f2d

Browse files
authored
Merge pull request #40 from objectstack-ai/copilot/fix-studio-build-workflow
2 parents 4156846 + 8c8beab commit 8a23f2d

7 files changed

Lines changed: 9 additions & 22 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
- main
77
paths:
88
- 'docs/**'
9-
- 'apps/playground/**'
109
- 'packages/**'
1110
- '.github/workflows/deploy-docs.yml'
1211
workflow_dispatch:
@@ -58,16 +57,6 @@ jobs:
5857
- name: Build documentation
5958
run: pnpm docs:build
6059

61-
- name: Build Studio (Playground)
62-
run: pnpm --filter @apps/playground... build
63-
env:
64-
NODE_ENV: production
65-
66-
- name: Copy Studio to docs dist
67-
run: |
68-
mkdir -p docs/.vitepress/dist/studio
69-
cp -r apps/playground/dist/* docs/.vitepress/dist/studio/
70-
7160
- name: Setup Pages
7261
uses: actions/configure-pages@v4
7362

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
[![React](https://img.shields.io/badge/React-18+-61dafb.svg)](https://reactjs.org/)
1212
[![Tailwind CSS](https://img.shields.io/badge/Tailwind-3.0+-38bdf8.svg)](https://tailwindcss.com/)
1313

14-
[**Documentation**](https://www.objectui.org) | [**Quick Start**](#quick-start) | [**Examples**](#examples) | [**Studio**](https://www.objectui.org/studio/)
14+
[**Documentation**](https://www.objectui.org) | [**Quick Start**](#quick-start) | [**Examples**](#examples) | [**Studio**](https://play.objectstack.ai)
1515

1616
</div>
1717

@@ -159,7 +159,7 @@ export default App
159159

160160
Explore our interactive drag-and-drop designer:
161161

162-
🚀 [**Launch Object UI Studio**](https://www.objectui.org/studio/) - Design visually, export JSON instantly.
162+
🚀 [**Launch Object UI Studio**](https://play.objectstack.ai) - Design visually, export JSON instantly.
163163

164164
## 📦 Packages
165165

apps/playground/src/App.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BrowserRouter as Router, Routes, Route, Navigate } from 'react-router-dom';
1+
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
22
import { Home } from './pages/Home';
33
import { Studio } from './pages/Studio';
44
import '@object-ui/components';
@@ -17,9 +17,7 @@ export default function App() {
1717
<Router>
1818
<Routes>
1919
<Route path="/" element={<Home />} />
20-
<Route path="/studio/:id" element={<Studio />} />
21-
{/* Default redirect to first example if typed manually specifically */}
22-
<Route path="/studio" element={<Navigate to="/studio/dashboard" replace />} />
20+
<Route path="/:id" element={<Studio />} />
2321
</Routes>
2422
</Router>
2523
);

apps/playground/src/pages/Home.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export const Home = () => {
102102
return (
103103
<div
104104
key={key}
105-
onClick={() => navigate(`/studio/${key}`)}
105+
onClick={() => navigate(`/${key}`)}
106106
className="group relative bg-white rounded-2xl border-2 border-gray-200 overflow-hidden hover:shadow-2xl hover:shadow-indigo-500/20 transition-all duration-300 cursor-pointer hover:border-indigo-400 hover:-translate-y-1 flex flex-col h-72"
107107
>
108108
{/* Gradient overlay on hover */}

apps/playground/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import path from 'path';
55
// https://vitejs.dev/config/
66
export default defineConfig({
77
plugins: [react()],
8-
base: process.env.NODE_ENV === 'production' ? '/studio/' : '/',
8+
base: '/',
99
resolve: {
1010
alias: {
1111
'@object-ui/components': path.resolve(__dirname, '../../packages/components/src'),

docs/guide/studio.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The **Object UI Studio** is a powerful, interactive visual editor that allows yo
66

77
<div class="tip custom-block">
88
<p><strong>Try it now!</strong></p>
9-
<p>Access the Studio at: <a href="/studio/" target="_blank">/studio/</a></p>
9+
<p>Access the Studio at: <a href="https://play.objectstack.ai" target="_blank">play.objectstack.ai</a></p>
1010
</div>
1111

1212
## Features

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ hero:
1111
actions:
1212
- theme: brand
1313
text: Try Studio Now
14-
link: /studio/
14+
link: https://play.objectstack.ai
1515
- theme: alt
1616
text: Get Started
1717
link: /guide/introduction
@@ -82,7 +82,7 @@ That's it! This JSON automatically creates a beautiful, accessible, and function
8282
<p class="custom-block-title" style="color: #6366f1;">✨ Experience Object UI Studio</p>
8383
<p>Explore our interactive visual editor with drag-and-drop design, live preview, and instant JSON export. Perfect for prototyping and learning!</p>
8484
<p style="margin-top: 12px;">
85-
<a href="/studio/" style="display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border-radius: 8px; text-decoration: none; font-weight: 600; box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3); transition: all 0.3s;">
85+
<a href="https://play.objectstack.ai" target="_blank" style="display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border-radius: 8px; text-decoration: none; font-weight: 600; box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3); transition: all 0.3s;">
8686
🚀 Launch Studio
8787
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/><path d="m12 5 7 7-7 7"/></svg>
8888
</a>

0 commit comments

Comments
 (0)