Skip to content

Commit

Permalink
feat: send id on url resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Oct 18, 2023
1 parent 3c4984a commit d03546f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,6 @@ jobs:
node: [lts/*]
# It makes sense to also test the oldest, and latest, versions of Node.js, on ubuntu-only since it's the fastest CI runner
include:
- os: ubuntu-latest
# Test the oldest LTS release of Node that's still receiving bugfixes and security patches, versions older than that have reached End-of-Life
node: lts/-2
- os: ubuntu-latest
# Test the actively developed version that will become the latest LTS release next October
node: current
Expand Down
1 change: 1 addition & 0 deletions src/defineUrlResolver.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export function defineUrlResolver(options: DefineUrlResolverOptions): UrlResolve
return (document, urlSecret) => {
const url = new URL(base, location.origin)
url.searchParams.set('type', document._type)
url.searchParams.set('id', document._id)
const slug = (document?.slug as any)?.current
if (slug) {
url.searchParams.set('slug', slug)
Expand Down

0 comments on commit d03546f

Please sign in to comment.