Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prerender paths #322

Merged
merged 2 commits into from
Jan 13, 2021
Merged

Prerender paths #322

merged 2 commits into from
Jan 13, 2021

Conversation

Rich-Harris
Copy link
Member

Once again I find myself wishing we had some tests for prerender, but without the time to make it so.

If you have config.paths.base or config.paths.assets, those will be reflected in the prerendered HTML, which means the crawler gets confused and tries to visit non-existent (as far as the locally running app is concerned) paths. This PR fixes it by removing config.paths.assets before testing to see if a file exists, and removing config.paths.base before crawling subsequent pages.

@Rich-Harris Rich-Harris merged commit 26643df into master Jan 13, 2021
@Rich-Harris Rich-Harris deleted the prerender-paths branch January 13, 2021 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant