Compare commits

..

2 commits

Author SHA1 Message Date
0772a9a8e7 use lazy loading 2024-10-15 22:19:39 -04:00
f4cc751a47 use ip 2024-10-15 22:18:55 -04:00
2 changed files with 5 additions and 3 deletions

View file

@ -1,6 +1,6 @@
import type { JSXElement } from "solid-js";
import { lazy } from "solid-js";
import { ColorModeProvider, ColorModeScript } from "@kobalte/core";
import { Separator } from "@/components/ui/separator";
import {
Tabs,
TabsContent,
@ -9,10 +9,11 @@ import {
TabsTrigger,
} from "@/components/ui/tabs";
import Home from "@/pages/Home";
import Browser from "@/pages/Browser";
import Game from "@/pages/Game";
import Footer from "@/components/Footer";
const Browser = lazy(() => import("@/pages/Browser"));
const Game = lazy(() => import("@/pages/Game"));
export default function App(): JSXElement {
return (
<>

View file

@ -17,6 +17,7 @@ export default defineConfig({
solidPlugin(),
],
server: {
host: "127.0.0.1",
port: 3000,
},
build: {