Trader101
Trader101
Explore posts from servers
SSolidJS
Created by FatFreeButter on 2/11/2025 in #support
Dependency error using npm init solid@latest
hi, I've noticed you use vite-plugin-pwa, does it work with solidstart? Because I want to build a messaging app for iphone with solidstart and I want to add it to home screen and get a push notification when there's a new message. So I need pwa
18 replies
SSolidJS
Created by hannus on 2/1/2025 in #support
Duplicate `<link rel="canonical">` in SolidStart
Ye sorry I confused with old solid start
25 replies
SSolidJS
Created by hannus on 2/1/2025 in #support
Duplicate `<link rel="canonical">` in SolidStart
In two different places
25 replies
SSolidJS
Created by hannus on 2/1/2025 in #support
Duplicate `<link rel="canonical">` in SolidStart
Like now we have <head> and <Head>
25 replies
SSolidJS
Created by hannus on 2/1/2025 in #support
Duplicate `<link rel="canonical">` in SolidStart
Yeah I get it before you had solid meta built in it was better imo
25 replies
SSolidJS
Created by hannus on 2/1/2025 in #support
Duplicate `<link rel="canonical">` in SolidStart
And remove the head from that file I showed above
25 replies
SSolidJS
Created by hannus on 2/1/2025 in #support
Duplicate `<link rel="canonical">` in SolidStart
Should i move all meta tags to app.tsx
25 replies
SSolidJS
Created by hannus on 2/1/2025 in #support
Duplicate `<link rel="canonical">` in SolidStart
So like I keep the head in entry client or move it entirely to app.tsx?
25 replies
SSolidJS
Created by hannus on 2/1/2025 in #support
Duplicate `<link rel="canonical">` in SolidStart
like we have duplicate head?
25 replies
SSolidJS
Created by hannus on 2/1/2025 in #support
Duplicate `<link rel="canonical">` in SolidStart
thanks for helping showing how to use meta in solidstart app but what about this?
// @refresh reload
import { createHandler, StartServer } from "@solidjs/start/server";

export default createHandler(() => (
<StartServer
document={({ assets, children, scripts }) => (
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="/favicon.ico" />
{assets}
</head>
<body>
<div id="app">{children}</div>
{scripts}
</body>
</html>
)}
/>
));
// @refresh reload
import { createHandler, StartServer } from "@solidjs/start/server";

export default createHandler(() => (
<StartServer
document={({ assets, children, scripts }) => (
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="/favicon.ico" />
{assets}
</head>
<body>
<div id="app">{children}</div>
{scripts}
</body>
</html>
)}
/>
));
25 replies