Skip to content

Commit 38b5ef7

Browse files
fix(web): use aspect-video for thumbnails in showcase items
1 parent a6c1e59 commit 38b5ef7

File tree

5 files changed

+24
-8
lines changed

5 files changed

+24
-8
lines changed

apps/cli/src/constants.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,7 @@ export const dependencyVersionMap = {
155155
"@sveltejs/adapter-cloudflare": "^7.2.1",
156156
"@cloudflare/workers-types": "^4.20250822.0",
157157

158-
alchemy: "^0.70.0",
159-
// temporary workaround for alchemy + tanstack start
160-
nitropack: "^2.12.4",
158+
alchemy: "^0.75.1",
161159

162160
dotenv: "^17.2.2",
163161
tsdown: "^0.15.5",

apps/cli/src/helpers/core/env-setup.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,13 @@ ${hasWeb ? "# npx convex env set SITE_URL http://localhost:3001\n" : ""}
352352
databaseUrl = "mongodb://localhost:27017/mydatabase";
353353
break;
354354
case "sqlite":
355-
if (config.runtime === "workers" ||
356-
(webDeploy === "wrangler" || serverDeploy === "wrangler" || webDeploy === "alchemy" || serverDeploy === "alchemy")) {
355+
if (
356+
config.runtime === "workers" ||
357+
webDeploy === "wrangler" ||
358+
serverDeploy === "wrangler" ||
359+
webDeploy === "alchemy" ||
360+
serverDeploy === "alchemy"
361+
) {
357362
databaseUrl = "http://127.0.0.1:8080";
358363
} else {
359364
const dbAppDir = backend === "self" ? "apps/web" : "apps/server";

apps/cli/src/helpers/core/post-installation.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,14 @@ export async function displayPostInstallInstructions(
126126
output += `${pc.cyan(`${stepCounter++}.`)} ${packageManager} install\n`;
127127
}
128128

129-
if (database === "sqlite" && dbSetup === "none" && (serverDeploy === "wrangler" || serverDeploy === "alchemy" || webDeploy === "wrangler" || webDeploy === "alchemy")) {
129+
if (
130+
database === "sqlite" &&
131+
dbSetup === "none" &&
132+
(serverDeploy === "wrangler" ||
133+
serverDeploy === "alchemy" ||
134+
webDeploy === "wrangler" ||
135+
webDeploy === "alchemy")
136+
) {
130137
output += `${pc.cyan(`${stepCounter++}.`)} ${runCmd} db:local\n${pc.dim(
131138
" (starts local SQLite server for Workers compatibility)",
132139
)}\n`;

apps/web/src/app/(home)/showcase/_components/ShowcaseItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default function ShowcaseItem({
4040
</div>
4141
</div>
4242

43-
<div className="relative aspect-[4/3] w-full overflow-hidden bg-muted/10">
43+
<div className="relative aspect-video w-full overflow-hidden bg-muted/10">
4444
<Image
4545
src={imageUrl}
4646
alt={title}

apps/web/tsconfig.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@
2626
}
2727
]
2828
},
29-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
29+
"include": [
30+
"next-env.d.ts",
31+
"**/*.ts",
32+
"**/*.tsx",
33+
".next/types/**/*.ts",
34+
".next/dev/types/**/*.ts"
35+
],
3036
"exclude": ["node_modules"]
3137
}

0 commit comments

Comments
 (0)