Skip to content

Commit 7fc74db

Browse files
committed
fix ci/cd
1 parent 5d19eb9 commit 7fc74db

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

src/routes/routes.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ const pages: RouteObject[] = [
2626
];
2727

2828
const routes = removeUnnecessary(pages);
29-
const router = createBrowserRouter(routes, { basename: "/" });
29+
const router = createBrowserRouter(routes, { basename: "/zlottie" });
3030

3131
export { pages, routes, router };

vite/default.config.ts

-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import path from "node:path";
44
import core from "@vitejs/plugin-react-swc";
55
import svgr from "vite-plugin-svgr";
66
import tsPaths from "vite-tsconfig-paths";
7-
import { compression } from "vite-plugin-compression2";
87
import { analyzer } from "vite-bundle-analyzer";
98

109
export const defaultConfig: InlineConfig = {
@@ -15,11 +14,6 @@ export const defaultConfig: InlineConfig = {
1514
tsPaths(),
1615
core(),
1716
svgr(),
18-
compression({
19-
algorithm: "gzip",
20-
threshold: 10_000,
21-
deleteOriginalAssets: true,
22-
}),
2317
// analyzer(),
2418
],
2519
resolve: {

vite/prod.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { defaultConfig } from "./default.config";
66

77
export default defineConfig({
88
...defaultConfig,
9-
base: "/",
9+
base: "/zlottie",
1010
build: {
1111
sourcemap: false,
1212
cssCodeSplit: true,

0 commit comments

Comments
 (0)