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.

Does this support co-locating images from the same folder as the blog?

See original GitHub issue

I loved the next-mdx-remote API but I wasn’t able to keep my images co-located as my blog posts.

See this for more info → https://stackoverflow.com/questions/63957018/how-to-use-images-in-a-mdx-file-outside-of-public-folder-while-using-next

Does mdx-bundler support it?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:23 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Arcathcommented, Apr 30, 2021
1reaction
Arcathcommented, Apr 29, 2021

Nice one @Arcath

I am assuming this copies images from my blog post folder to public/ folder & renames it if name collision happens?

It over-writes as far as I am aware, each call to bundleMDX is unaware of what the previous runs have returned.

Personally I set the cwd, outdir, and public path per post so there is no chance of collisions with other builds.

I have post in the works about it that should be going out this evening.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to add an image to a blog post page - Support - Zola
I'm trying it with the image colocated with my blog's markdown file, but ideally I think I'd like images separated into folders for...
Read more >
Colocation - Kent C. Dodds
To help enable a more maintainable codebase, we should co-locate our tests files with the file or group of files they are testing....
Read more >
Overview - Zola
Asset colocation. The content directory is not limited to markup files. It's natural to want to co-locate a page and some related assets,...
Read more >
Add images & videos to your blog - Blogger Help
You can add photos, videos, and other images to your blog posts. When you add images to your blog, they're stored in a...
Read more >
Colocation Explained - GlobalDots
A colocation centre (also spelled co-location, or colo) or “carrier hotel”, is a type of data centre where equipment, space, and bandwidth are...
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