fix: Debug mode showing in production
This commit is contained in:
@@ -8,8 +8,8 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "npm run --prefix backend build && vite build --outDir backend/dist/dist",
|
"build": "npm run --prefix backend build && vite build --mode production --outDir backend/dist/dist",
|
||||||
"build:tizen": "set VITE_PLATFORM=tv&& vite build --outDir tizen/dist",
|
"build:tizen": "set VITE_PLATFORM=tv&& vite build --mode production --outDir tizen/dist",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"preview:tizen": "set VITE_PLATFORM=tv&& vite build --outDir tizen/dist && vite preview --outDir tizen/dist",
|
"preview:tizen": "set VITE_PLATFORM=tv&& vite build --outDir tizen/dist && vite preview --outDir tizen/dist",
|
||||||
"deploy": "PORT=9494 NODE_ENV=production node build/",
|
"deploy": "PORT=9494 NODE_ENV=production node build/",
|
||||||
|
|||||||
@@ -94,6 +94,7 @@
|
|||||||
|
|
||||||
<NotificationStack />
|
<NotificationStack />
|
||||||
|
|
||||||
<NavigationDebugger />
|
{#if import.meta.env.DEV}
|
||||||
|
<NavigationDebugger />
|
||||||
|
{/if}
|
||||||
<svelte:window on:keydown={handleKeyboardNavigation} />
|
<svelte:window on:keydown={handleKeyboardNavigation} />
|
||||||
|
|||||||
@@ -69,10 +69,10 @@
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<DetachedPage class="px-32 py-16 h-screen flex flex-col">
|
<DetachedPage class="pt-16 h-screen flex flex-col">
|
||||||
<Container
|
<Container
|
||||||
direction="horizontal"
|
direction="horizontal"
|
||||||
class="flex space-x-8 header3 pb-3 border-b-2 border-secondary-700 w-full mb-8"
|
class="flex space-x-8 header3 pb-3 border-b-2 border-secondary-700 mb-8 mx-32"
|
||||||
>
|
>
|
||||||
<Container
|
<Container
|
||||||
on:enter={() => tab.set(Tabs.Interface)}
|
on:enter={() => tab.set(Tabs.Interface)}
|
||||||
@@ -121,7 +121,7 @@
|
|||||||
</Container>
|
</Container>
|
||||||
</Container>
|
</Container>
|
||||||
|
|
||||||
<Container class="flex-1 grid w-full overflow-y-auto scrollbar-hide relative">
|
<Container class="flex-1 grid w-full overflow-y-auto scrollbar-hide relative pb-16 px-32">
|
||||||
<Tab {...tab} tab={Tabs.Interface} class="w-full">
|
<Tab {...tab} tab={Tabs.Interface} class="w-full">
|
||||||
<div class="flex items-center justify-between text-lg font-medium text-secondary-100 py-2">
|
<div class="flex items-center justify-between text-lg font-medium text-secondary-100 py-2">
|
||||||
<label class="mr-2">Animate scrolling</label>
|
<label class="mr-2">Animate scrolling</label>
|
||||||
@@ -316,6 +316,12 @@
|
|||||||
<div>
|
<div>
|
||||||
Version: {REIVERR_VERSION}
|
Version: {REIVERR_VERSION}
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
Mode: {import.meta.env.MODE}
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
meta.env: {JSON.stringify(import.meta.env)}
|
||||||
|
</div>
|
||||||
User agent: {window?.navigator?.userAgent}
|
User agent: {window?.navigator?.userAgent}
|
||||||
<div>Last key code: {lastKeyCode}</div>
|
<div>Last key code: {lastKeyCode}</div>
|
||||||
<div>Last key: {lastKey}</div>
|
<div>Last key: {lastKey}</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user