Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Feature: Prerender Images#6090

LandonSchropp started this conversation inIdeas
Discussion options

I'm building a personal static site that renders book covers based on dynamic content. In order to fetch the book cover images, I'm using theOpenLibrary API along with a custom file route.

// src/routes/isbn/$isbn.tsimport{createFileRoute}from"@tanstack/react-router";exportconstRoute=createFileRoute("/isbn/$isbn")({server:{handlers:{GET:async({ params})=>{returnfetch(`https://covers.openlibrary.org/b/isbn/${params.isbn}-L.jpg`);},},},});

This works great in development mode, but fails when I pre-render the site (prerender: { enabled: true, crawlLinks: true }), it fails because images are not crawled. It would be awesome if they could be. 🙂

You must be logged in to vote

Replies: 0 comments

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Ideas
Labels
None yet
1 participant
@LandonSchropp

[8]ページ先頭

©2009-2025 Movatter.jp