Skip to content

Commit 038bba0

Browse files
committed
seperate public website from app
1 parent 8c158c7 commit 038bba0

29 files changed

Lines changed: 4492 additions & 80 deletions

app/dev-dist/sw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ define(['./workbox-5a5d9309'], (function (workbox) { 'use strict';
8282
"revision": "3ca0b8505b4bec776b69afdba2768812"
8383
}, {
8484
"url": "index.html",
85-
"revision": "0.9p0j4tt8al"
85+
"revision": "0.a94j5j6de48"
8686
}], {});
8787
workbox.cleanupOutdatedCaches();
8888
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {

app/src/App.tsx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
import { ThemeProvider } from "@/components/theme-provider"
2-
import { GlobalShaderOverlay } from "@/components/ui/global-shader-overlay"
32
import { BrowserRouter as Router, Routes, Route, Navigate, useParams } from 'react-router-dom';
43
import { AuthProvider, useAuth } from './contexts/AuthContext';
54
import { GlobalProvider } from './contexts/GlobalContext';
65
import { AlertProvider } from './contexts/AlertContext';
76
import { WorkspaceProvider } from './contexts/WorkspaceContext';
87
import { ErrorBoundary } from './components/ui/error-boundary';
9-
import LandingPage from './pages/LandingPage';
10-
import DocsPage from './pages/DocsPage';
11-
import AboutPage from './pages/AboutPage';
12-
import FeaturesPage from './pages/FeaturesPage';
138
import LoginPage from './pages/LoginPage';
149
import WorkspacesPage from './pages/WorkspacesPage';
1510
import Dashboard from './pages/Dashboard';
@@ -65,13 +60,8 @@ function App() {
6560
<WorkspaceProvider>
6661
<GlobalProvider>
6762
<PWAProvider>
68-
<GlobalShaderOverlay />
6963
<Routes>
70-
{/* Public Routes */}
71-
<Route path="/" element={<LandingPage />} />
72-
<Route path="/docs" element={<DocsPage />} />
73-
<Route path="/about" element={<AboutPage />} />
74-
<Route path="/features" element={<FeaturesPage />} />
64+
<Route path="/" element={<Navigate to="/login" replace />} />
7565
<Route path="/login" element={<LoginPage />} />
7666

7767
{/* Workspaces List */}

public_website/.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VITE_APP_URL=http://localhost:5173

public_website/index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Context Platform</title>
8+
</head>
9+
<body>
10+
<div id="root"></div>
11+
<script type="module" src="/src/main.tsx"></script>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)