Skip to content

getEdgeProps doesn't return content from params #229

Answered by tj-kev
augustomallmann asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,
looks like this is a missing feature which really should be implemented.

In the meantime, you could get it from the event pathname and extract it from there.

export async function getEdgeProps({ event }) {
    const { pathname } = new URL(event.request.url);

   ...
}

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@traffisco
Comment options

@tj-kev
Comment options

@traffisco
Comment options

Answer selected by augustomallmann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants