Help forum

image url - self hosting

  • saillmone

    3 hours ago

    How do you handle the images url in self hosting ?
    Using the Nordcraft Media, the url is /cdn/... hosting by Nordcraft directly.
    Once online with Cloudflare Workers, the link is down due to relative link.

    I'm using https://imagedelivery.net/image-link-in-nordcraft but I think there's a better option.

    How can I push the assets to CloudFlare directly ? I see all the JS, CSS in the dist/assets/static but no pictures.

    Thanks!
  • Erik Beuschau

    3 hours ago

    If you're self hosting, you can add a proxy that points to the images where they're actually hosted https://docs.nordcraft.com/pages/proxies
  • That proxy would then map from /cdn-cgi/... to yourproject.nordcraft.site/cdn-cgi/...
  • Erik Beuschau

    2 hours ago

    Either that, or you ask an agent to crawl all images and upload them elsewhere + fix all urls in your project to those new urls
  • If you haven't tried it already, our MCP server is quite useful 👍 https://docs.nordcraft.com/mcp-server