Eric Burel @ericburel.tech · Feb 22

Now time to import it. Out-of-the-box, you have to use relative imports like "../../../../fetchers/surveyWithSitemap.ts", that's dull Hopefully Astro supports import aliases, it just needs a line in the tsconfig.json docs.astro.build/en/guides/ty... Now "@/fetchers/surveyWithSitemap" will work

0 likes 1 replies

?

Replies

Eric Burel · Feb 22

By the way, if you have no idea what's going on in this thread, check the previous episodes here: bsky.app/profile/eric... And there: bsky.app/profile/eric...