feat: Introduce mobile simulator UI with new routes, screens, shared application chrome, and updated dependencies.
This commit is contained in:
@@ -3,8 +3,36 @@ import { playwright } from '@vitest/browser-playwright';
|
||||
import tailwindcss from '@tailwindcss/vite';
|
||||
import { sveltekit } from '@sveltejs/kit/vite';
|
||||
|
||||
const backendTarget = process.env.BACKEND_URL ?? 'http://localhost:3000';
|
||||
|
||||
const proxiedPaths = [
|
||||
'/api',
|
||||
'/devices',
|
||||
'/device-links',
|
||||
'/streams',
|
||||
'/events',
|
||||
'/recordings',
|
||||
'/videos',
|
||||
'/push-notifications',
|
||||
'/socket.io'
|
||||
] as const;
|
||||
|
||||
const proxy = Object.fromEntries(
|
||||
proxiedPaths.map((path) => [
|
||||
path,
|
||||
{
|
||||
target: backendTarget,
|
||||
changeOrigin: true,
|
||||
ws: path === '/socket.io'
|
||||
}
|
||||
])
|
||||
);
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [tailwindcss(), sveltekit()],
|
||||
server: {
|
||||
proxy
|
||||
},
|
||||
test: {
|
||||
expect: { requireAssertions: true },
|
||||
projects: [
|
||||
|
||||
Reference in New Issue
Block a user