question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Prerender specific paths

See original GitHub issue

Is it possible to configure the rendering? To tell it to generate unique pages based on a route with specific parameter.

I want to prerender my blog which is written in Blazor. To get SEO.

I have posts stored as markdown files which are loaded by page which has the following route:

@page "/posts/{id}"

id is mapped to the name of a markdown file. test.md has Id test

So I wish that I could configure the generator to iterate the markdown files in a folder, and to construct the paths (with parameters) for it to prerender into separate files.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jsakamotocommented, Oct 22, 2022

@marinasundstrom Thank you for your patience. I fixed the problem of the “Blazor Wasm Pre-rendering Build” NuGet package and released its new version today.

And moreover, I applied it to your project and sent a pull request.

https://github.com/marinasundstrom/marinas-blog/pull/1

There are still some points that can be improved and an undesirable limitation, but I’ll appreciate it if you check out the pull request above link.

1reaction
marinasundstromcommented, Oct 19, 2022

@jsakamoto I understand that. I just wanted an estimated timeframe. 🙂

Before reading your message I actually worried about having stressed you. Not my intent!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I control which routes Angular decides to ...
I'm trying to prerender my angular app using, ng run [myAppName]:prerender . I only want to prerender the content of / as the...
Read more >
Static Pre-Rendering for Specific Routes #3906
My question is this: can I pre-render the data from the REST API for specific set of routes? And if yes, how do...
Read more >
Prerendering static pages
Specify a file that contains a list of all routes to prerender, separated by newlines. This option is useful if you have a...
Read more >
Pre-rendering in Angular with Angular Universal - Halodoc Blog
We can specify the routes which we want to pre-render using the routes options. There are also other ways to specify the routes...
Read more >
How should I pre-render route with getStaticPath if I am ...
I can use getStaticPaths to read each folder and create a path for each image. Each of these image pages is now prerendered...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found