diff --git a/app.config.ts b/app.config.ts index c9b708e..4c76dca 100644 --- a/app.config.ts +++ b/app.config.ts @@ -1,9 +1,11 @@ import { ViteCustomizableConfig, defineConfig } from "@solidjs/start/config" import { internalIpV4 } from "internal-ip" -import { readFileSync } from 'fs' +// biome-ignore lint/correctness/noNodejsModules: build context +import { readFileSync } from 'node:fs' const mobile = !!/android|ios/.exec(process.env.TAURI_ENV_PLATFORM) -let key = '', cert = '' +let key = '' +let cert = '' try { key = readFileSync("./localhost-key.pem").toString() cert = readFileSync("./localhost.pem").toString() diff --git a/package.json b/package.json index 201f3a8..7faea42 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,8 @@ "dev": "vinxi dev", "build": "vinxi build", "serve": "vinxi preview", - "tauri": "tauri" + "tauri": "tauri", + "fix": "npx @biomejs/biome check src/. --fix" }, "license": "MIT", "dependencies": { diff --git a/src/app.tsx b/src/app.tsx index 93bba8a..4431b35 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -1,23 +1,23 @@ -import { createSignal } from "solid-js"; -import "./app.css"; +import { createSignal } from 'solid-js' +import './app.css' export default function App() { - const [count, setCount] = createSignal(0); + const [count, setCount] = createSignal(0) return (

Hello world!

- +

- Visit{" "} - + Visit{' '} + start.solidjs.com - {" "} + {' '} to learn how to build SolidStart apps.

- ); + ) } diff --git a/src/entry-client.tsx b/src/entry-client.tsx index 0ca4e3c..a7920a3 100644 --- a/src/entry-client.tsx +++ b/src/entry-client.tsx @@ -1,4 +1,4 @@ // @refresh reload -import { mount, StartClient } from "@solidjs/start/client"; +import { StartClient, mount } from '@solidjs/start/client' -mount(() => , document.getElementById("app")!); +mount(() => , document.getElementById('app') || document.body) diff --git a/src/entry-server.tsx b/src/entry-server.tsx index 401eff8..24fb08f 100644 --- a/src/entry-server.tsx +++ b/src/entry-server.tsx @@ -1,5 +1,5 @@ // @refresh reload -import { createHandler, StartServer } from "@solidjs/start/server"; +import { StartServer, createHandler } from '@solidjs/start/server' export default createHandler(() => ( ( )} /> -)); +))