-
Notifications
You must be signed in to change notification settings - Fork 86
fix: provide hostname and port to server #1149
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
Conversation
✔️ Deploy Preview for netlify-plugin-nextjs-demo ready! 🔨 Explore the source changes: 2bdc0e7 🔍 Inspect the deploy log: https://app.netlify.com/sites/netlify-plugin-nextjs-demo/deploys/61eeb29f5a041c000718bd2d 😎 Browse the preview: https://deploy-preview-1149--netlify-plugin-nextjs-demo.netlify.app |
✔️ Deploy Preview for netlify-plugin-nextjs-nx-monorepo-demo ready! 🔨 Explore the source changes: 2bdc0e7 🔍 Inspect the deploy log: https://app.netlify.com/sites/netlify-plugin-nextjs-nx-monorepo-demo/deploys/61eeb29fc0d22e00079854b0 😎 Browse the preview: https://deploy-preview-1149--netlify-plugin-nextjs-nx-monorepo-demo.netlify.app |
✔️ Deploy Preview for netlify-plugin-nextjs-static-root-demo ready! 🔨 Explore the source changes: 2bdc0e7 🔍 Inspect the deploy log: https://app.netlify.com/sites/netlify-plugin-nextjs-static-root-demo/deploys/61eeb29f1b6f3500083a7f8a 😎 Browse the preview: https://deploy-preview-1149--netlify-plugin-nextjs-static-root-demo.netlify.app |
✔️ Deploy Preview for netlify-plugin-nextjs-export-demo ready! 🔨 Explore the source changes: 2bdc0e7 🔍 Inspect the deploy log: https://app.netlify.com/sites/netlify-plugin-nextjs-export-demo/deploys/61eeb2a0d01a0f0007a19f14 😎 Browse the preview: https://deploy-preview-1149--netlify-plugin-nextjs-export-demo.netlify.app |
588caa4
to
70d6714
Compare
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
// exit preview mode | ||
cy.request('/api/exitPreview') | ||
cy.visit('/previewTest') | ||
cy.findByText('Is preview? No', { selector: 'h1' }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is Cypress in CI saying there is more than one instance of this text :confused-capybara:?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was baffled for ages, but if you look at the error in the dashboard, it seems there's a <p>
, which is the route announcer (for screen readers)! No idea why it only shows for this route though.
I changed the indentation level of the handler, so this is easier to review with whitespace hidden |
Summary
As of
[email protected]
, middleware requiresNextServer
to be instantiated with a port and hostname.Test plan
Relevant links (GitHub issues, Notion docs, etc.) or a picture of cute animal
Fixes #1141
Standard checks:
🧪 Once merged, make sure to update the version if needed and that it was published correctly.