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.

Discussion on plugin system

See original GitHub issue

Generating a static site isn’t only a matter of routes and flat files. Sometimes you need to generate files that don’t lend themselves to react-router routes:

  1. Resized images
  2. RSS feeds
  3. .htaccess redirect rules
  4. Downloaded/locally-cached resources

I can imagine writing generated files directly to /dist during getSiteProps() or getProps(). But that feels incredibly dirty, both because it’s relying on side-effects and because it’s circumventing whatever resource conservation react-static has or will someday have.

So what’s the recommended way for handling these situations?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
tannerlinsleycommented, Feb 28, 2018

So far my thoughts are leaning towards keeping the react-static api very lean and improving the way people use and interact with the examples. I’ve heard some great ideas here and elsewhere about improving the documentation for each example to show linear changes that are made to accomplish each one. We could also make a new Guides section in the documentation that instead shows how to implement other popular concepts step by step (ultimately pointing them to the examples for a finished product).

0reactions
tannerlinsleycommented, Mar 1, 2018

I think it’s the latter. The readme should document the core changes and usages in the example with code blocks.

On Thu, Mar 1, 2018 at 10:21 AM Riley notifications@github.com wrote:

I wonder if there is a good filesystem diffing we could do to compare examples.

Say we have a core example folder, then we compare that to examples and have some mardown or HTML diff viewable so people see what files are different?

Sometimes looking through examples can be hard to know what files are different?

Or maybe this means the readme examples should have a more strict readme format explaining the example in more detail??

— You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub https://github.com/nozzle/react-static/issues/309#issuecomment-369664277, or mute the thread https://github.com/notifications/unsubscribe-auth/AFUmCUYj0Ssjvb-gAlQ2iccqfQcS--9Yks5taC4NgaJpZM4Rpkt2 .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Plugin System · Discussion #3806 · helix-editor/helix - GitHub
This is a discussion for the future plugin system, created in order to prevent further clutter of #122. Current status as of December...
Read more >
Discussion Plugin - DokuWiki
The Discussion Plugin adds a discussion section after your wiki page for user comments. This is useful to separate page content and the...
Read more >
Plugin system - Development - Discuss Write.as
I've been thinking about a way to start building a plugin system for WriteFreely. In this thread I want to open up a...
Read more >
Discussion Board – WordPress Forum Plugin
Discussion Board is an easy way to add a forum to your WordPress site. It has a one-click installation and stacks of essential...
Read more >
Top 9 WordPress Forum Plugins for Discussing Hot Topics
For instance, you might need a BuddyPress system with registration options. There's a plugin for that. You may want to integrate BuddyPress ...
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