Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
# Environment Configuration
# ============================================================

# Set to true to use mock data (no backend required)
# Set to false when the real backend is ready
VITE_USE_MOCK=false
# Set environment to local, dev, or prod
VITE_ENV=local

# Backend API base URL (used when VITE_USE_MOCK=false)
VITE_API_BASE_URL=https://revive-backend-production-93ea.up.railway.app/
# Environment URLs
VITE_API_URL_LOCAL=http://localhost:8080/
VITE_API_URL_DEV=https://api-dev.revive.com/
VITE_API_URL_PROD=https://revive-backend-production-93ea.up.railway.app/
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dist-ssr
*.njsproj
*.sln
*.sw?

test-results/
/playwright-report
/test-results
login-timeout.png
5 changes: 4 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ export default defineConfig([
],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
globals: {
...globals.browser,
...globals.node,
},
parserOptions: {
ecmaVersion: 'latest',
ecmaFeatures: { jsx: true },
Expand Down
Binary file added login-timeout.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
90 changes: 90 additions & 0 deletions playwright-report/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion playwright.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineConfig, devices } from '@playwright/test';

export default defineConfig({
testDir: './tests/e2e',
testDir: './tests',
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
Expand Down
5 changes: 5 additions & 0 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import {
Home,
Login,
Signup,
ForgotPassword,
ResetPassword,
Cart,
Checkout,
Payment,
Expand Down Expand Up @@ -76,8 +78,11 @@ export default function App() {
<Route path="/auth" element={<AuthLayout />}>
<Route path="login" element={<Login />} />
<Route path="signup" element={<Signup />} />
<Route path="forgot-password" element={<ForgotPassword />} />
</Route>

<Route path="/reset-password" element={<ResetPassword />} />

{/* Debug Route — remove before production */}
<Route path="/debug" element={<StoreDebug />} />

Expand Down
231 changes: 0 additions & 231 deletions src/mocks/dashboardMock.js

This file was deleted.

34 changes: 0 additions & 34 deletions src/mocks/enums.js

This file was deleted.

Loading