diff --git a/frontend/nyanpasu/src/router.ts b/frontend/nyanpasu/src/router.ts index 2a5ee01771..ca3f0d47d1 100644 --- a/frontend/nyanpasu/src/router.ts +++ b/frontend/nyanpasu/src/router.ts @@ -1,7 +1,7 @@ // Generouted, changes to this file will be overriden /* eslint-disable */ -import { components, hooks, utils } from '@generouted/react-router/client' +import { components, hooks, utils } from "@generouted/react-router/client"; export type Path = | `/connections` @@ -11,14 +11,16 @@ export type Path = | `/providers` | `/proxies` | `/rules` - | `/settings` + | `/settings`; -export type Params = { - -} +export type Params = {}; -export type ModalPath = never +export type ModalPath = never; -export const { Link, Navigate } = components() -export const { useModals, useNavigate, useParams } = hooks() -export const { redirect } = utils() +export const { Link, Navigate } = components(); +export const { useModals, useNavigate, useParams } = hooks< + Path, + Params, + ModalPath +>(); +export const { redirect } = utils(); diff --git a/frontend/nyanpasu/vite.config.ts b/frontend/nyanpasu/vite.config.ts index ae01dee8b3..4871951ef9 100644 --- a/frontend/nyanpasu/vite.config.ts +++ b/frontend/nyanpasu/vite.config.ts @@ -89,6 +89,7 @@ export default defineConfig(({ command }) => { build: { outDir: "dist", emptyOutDir: true, + sourcemap: isDev || IS_NIGHTLY ? "inline" : false, }, define: { OS_PLATFORM: `"${process.platform}"`,