-
Notifications
You must be signed in to change notification settings - Fork 394
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
[WIP] engine: move static/ contents into public/ and update links #879
Conversation
src/Tooltip/index.js
Outdated
import glossary from '../../static/docs/glossary' | ||
import glossary from '../../public/static/docs/glossary' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@iAdramelk @shcheklein Isn't it a little funny to import a static asset from src code? I know we talked about this change but I didn't realize this would be the result 😋
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In perfect world it, together with the md
files, should be placed in the content folder in root directory and moved automatically to public folder at build time, but in next.js
we would need to do it by hand and it's too bothersome.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK makes sense. I'll leave this review open for future ref.
to complete previous commit's intended change
update all links from contents WITHOUT proper formatting (yet). See https://nextjs.org/docs#static-file-serving-eg-images
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Yep same. /doc shows the 404 page (with a 200 status code BTW). Other /doc/{valid} routes also show 404s (but with actual 404 code). The strange thing is that it works on https://dvc-landing-jorgeorpine-bvadoh.herokuapp.com/doc 😋 which is why I think it has to do both with my move from static to public, and with your changes in #872 – specifically https://github.com/iterative/dvc.org/pull/872/files#diff-78c12f5adc1848d13b1c6f07055d996eR110-R113 maybe. I'll look into it... |
to close #804
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Failed miserably. We installed Restyled on this repo but the check is just not coming up. 🤷♂ Removed the config file for now. |
I added the .restyled.yaml config file again but Restyled thinks there's "No differences". Weird. I'll try to close and reopen the PR... |
Per node 9.0.6+ update
See https://github.com/zeit/next.js/blob/master/errors/static-dir-deprecated.md
And https://nextjs.org/docs#static-file-serving-eg-images
+ close #804 (adopt restyled.io) using this PR to test it.