oneezy / monorepo

Turborepo + Sveltekit + PNPM + Tailwind + Histoire
https://oneezy-monorepo.vercel.app
MIT License
87 stars 9 forks source link

Symlink routes aren't working #5

Closed oneezy closed 2 years ago

oneezy commented 2 years ago

A new bug was introduced in 1.0.0-next.432 of SvelteKit

See SvelteKit Issue #6303

Reproduction

1.0.0-next.432 (broke) ❌ https://github.com/oneezy/sveltekit-symlink-repro-next-432

1.0.0-next.431 (working) ✅ https://github.com/oneezy/sveltekit-symlink-repro-next-431


image

myhrmans commented 2 years ago

Is this what is causing also the icons and different things not to load properly when only starting the docs app?

oneezy commented 2 years ago

yes i believe so @myhrmans , that's why some of the icons/ images won't work when only running one app at a time i.e.

pnpm dev --filter @apps/docs

this monorepo only uses one folder for static assets which is located at ./apps/site/static so in order to get images working in all apps you'd need to symlink that static folder into every new app that's added to the apps/* folder.

I added a section in the README that explains where and when to use symlinks if you'd like to check it out.


unfortunately none of that will work until sveltekit issue #6303 is resolved.

oneezy commented 2 years ago

This is fixed