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.

Discussing caveat: "Is starting at / and crawling sufficient?"

See original GitHub issue

“Is starting at / and crawling sufficient? Might there be unreachable sections of your site?”

I think for most well-structured sites this should not be an issue since you can hopefully get to every page that ever existed by just clicking through the web of links…

However, for my use case, I want react-snapshot to render a static page that is not linked from anywhere. The page is a variation of one of my form pages, but it only contains the form, not the site layout (header, footer, etc.). (Unfortunately) I use this by embedding this page in another website in an iframe. This is why it doesn’t need to be linked anywhere in the main site (it should not be crawled, but it does need to exist statically).

I know the premise of react-snapshot is to be zero-configuration so I’m not sure that my use case will be supported, but do you have any ideas how this might look?

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
geelencommented, Feb 16, 2017

I don’t mind it, but to be honest, a bit of config isn’t maybe too bad:

/* package.json */
{
  ...,
  "react-snapshot": [
    "/",
    "/form?with=params"
  ]
}

That way at least each line is nicely tracked by version control…

0reactions
geelencommented, Apr 27, 2017

Sorry for dropping this for a while. I think in the case you describe, it probably makes more sense to make like a index page for all the URLs you can’t otherwise reach, call it like __index.html or something. If you put a hidden link on your homepage, or point react-snapshot at it directly in package.json, the crawler will find it and cache all those routes.

I think that’s better than having an executable config.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Caveat Emptor (Buyer Beware): What It Is, and What Replaced It
Caveat emptor is a Latin phrase that translates to "let the buyer beware." It means that an individual buys at their own risk....
Read more >
Caveat Definition & Meaning - Merriam-Webster
The meaning of CAVEAT is a warning enjoining one from certain acts or practices. ... caveat that it is effective only if the...
Read more >
the slow demise of caveat emptor in real property transactions ...
This Article takes a topical approach to the notable real property cases in this survey period, October 1, 2003 through September 30, 2004,...
Read more >
The Handbook for Campus Safety and Security Reporting
property as defined by the Clery Act and discussed in Chapter 2 of this handbook ... in a caveat or table that is...
Read more >
Higher seeding rate in June paid off Wallace Farmer
“Results from Beck's Practical Farm Research studies indicate you may even be able to go as low as 70,000 before you begin losing...
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