Skip to content

Commit

Permalink
chore: nightly build use include sourcemap
Browse files Browse the repository at this point in the history
  • Loading branch information
greenhat616 committed Aug 30, 2024
1 parent fcb68ac commit eb68a02
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
20 changes: 11 additions & 9 deletions frontend/nyanpasu/src/router.ts
Original file line number Diff line number Diff line change
@@ -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`
Expand All @@ -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<Path, Params>()
export const { useModals, useNavigate, useParams } = hooks<Path, Params, ModalPath>()
export const { redirect } = utils<Path, Params>()
export const { Link, Navigate } = components<Path, Params>();
export const { useModals, useNavigate, useParams } = hooks<
Path,
Params,
ModalPath
>();
export const { redirect } = utils<Path, Params>();
1 change: 1 addition & 0 deletions frontend/nyanpasu/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export default defineConfig(({ command }) => {
build: {
outDir: "dist",
emptyOutDir: true,
sourcemap: isDev || IS_NIGHTLY ? "inline" : false,
},
define: {
OS_PLATFORM: `"${process.platform}"`,
Expand Down

0 comments on commit eb68a02

Please sign in to comment.