Notes

Next.js

  1. · 8 min read

    MapLibre draws a blank map in Next.js, and the worker URL is why

    A bundler rewrites import.meta.url to a file:// path, MapLibre's worker URL resolves to an empty string, and new Worker('') loads your own HTML. Here is the fix.