Replies: 1 comment
-
I dont understand why you would have to do that actually. Can you provide some example code |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
I am trying to programmatically create the
entries
for my svelte.config.js, as most of my pages are generated based on an array of data that lives in$lib/data
- it's a very simple routine to generate the slugs for theentries
, but the problem is that I cannot import my routine (or data) from$lib/data
in svelte.config.js, as $lib does not appear to work there.Is there another way I can import that data without using $lib? I have tried every variant of relative and absolute path I can think of to just point it to the dir manually, but all fail saying it cannot find the package.
Thanks for any insights!
Beta Was this translation helpful? Give feedback.
All reactions