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

View file

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