Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fixup deployment docs #1931

Merged
merged 2 commits into from
Nov 5, 2024
Merged

docs: fixup deployment docs #1931

merged 2 commits into from
Nov 5, 2024

Conversation

thruflo
Copy link
Contributor

@thruflo thruflo commented Nov 5, 2024

No description provided.

@thruflo thruflo merged commit dadb9fb into main Nov 5, 2024
1 check was pending
@thruflo thruflo deleted the thruflo/fixup-deployment-docs branch November 5, 2024 18:12
Copy link

netlify bot commented Nov 5, 2024

Deploy Preview for electric-next ready!

Name Link
🔨 Latest commit 54faa71
🔍 Latest deploy log https://app.netlify.com/sites/electric-next/deploys/672a5fd49d67fd000831ecd3
😎 Deploy Preview https://deploy-preview-1931--electric-next.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -54,7 +54,7 @@ export default {
}

const url = new URL(request.url)
const shapeUrl = `${ELECTRIC_URL}${url.pathname}`
const shapeUrl = `${ELECTRIC_URL}${url.pathname}${url.search}`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this also needs to copy over query params e.g.

url.searchParams.forEach((value, key) => {
originUrl.searchParams.set(key, value)
})

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, that's what url.search does:

> new URL('http://foo.com/baz?foo=bar')
URL {
  href: 'http://foo.com/baz?foo=bar',
  origin: 'http://foo.com',
  protocol: 'http:',
  username: '',
  password: '',
  host: 'foo.com',
  hostname: 'foo.com',
  port: '',
  pathname: '/baz',
  search: '?foo=bar',
  searchParams: URLSearchParams { 'foo' => 'bar' },
  hash: ''
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah right :-D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants