Correct way to resolve URL for given page file? #680
Unanswered
MrFoxPro
asked this question in
Help & Questions
Replies: 1 comment
-
For improved dev speed, since Vite does on-demand transpiling, I'd recommend using something like the following instead of |
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
-
Hey. I want to make table of content to my blog, so I'm using
import.meta.glob
like this:index.page.server.tsx
:Is there a more convinient way to get url for a page?
I tried with
as: 'url'
in glob function, but it returns{ './hi.page.md': [Function: MDXContent] }
, so it's useless with VPS.I was able to access
PageContextBuiltIn
in page, but can't see how it can help me.#49 - related?
Beta Was this translation helpful? Give feedback.
All reactions