Skip to content

Clarify not supported Next.js features #4266

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

Merged
merged 2 commits into from
Oct 15, 2021

Conversation

iker-barriocanal
Copy link
Contributor

We should add to the docs the Next.js features we don't support. I'm not sure what the best place is, so I've added it in the paragraph after the features in the getting started page (see picture below). If the set of unsupported features grows, we can make an actual list, make another paragraph, add a section... If you can think of any other place where this section may suit better, please suggest.

image

@iker-barriocanal iker-barriocanal requested a review from a team October 13, 2021 10:13
@iker-barriocanal iker-barriocanal self-assigned this Oct 13, 2021
@iker-barriocanal iker-barriocanal requested review from rhcarvalho and smeubank and removed request for a team October 13, 2021 10:13
@vercel
Copy link

vercel bot commented Oct 13, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/sentry/sentry-docs/31vUMNTzGh461QfhEcVABWyxSJva
✅ Preview: https://sentry-docs-git-iker-nextjs-not-supported.sentry.dev

@kamilogorek
Copy link
Contributor

What's the actual state of supporting this? I've seen this comment from @lobsterkatie that states it should mostly work - getsentry/sentry-javascript#3782 (comment)

@iker-barriocanal
Copy link
Contributor Author

At the moment, not planned. There's this new issue related to it too.

@@ -15,3 +15,4 @@ Features:
- Automatic [Performance Monitoring](/product/performance/) for both the client and server, from version `6.5.0`

Under the hood the SDK relies on our [React SDK](/platforms/javascript/guides/react/) on the frontend and [Node SDK](/platforms/node) on the backend, which makes all features available in those SDKs also available in this SDK.
However, some Next.js features aren't currently supported, such as using a [custom server](https://nextjs.org/docs/advanced-features/custom-server).
Copy link
Member

@AbhiPrasad AbhiPrasad Oct 13, 2021

Choose a reason for hiding this comment

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

Not sure if this is the best place to put this - considering the sentences above are referring to sdk features.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think this placement is fine, but we shouldn't have a lead-in sentence saying "some" features aren't supported and then only name one feature. Suggest the following edit:

Suggested change
However, some Next.js features aren't currently supported, such as using a [custom server](https://nextjs.org/docs/advanced-features/custom-server).
However, using a [custom server](https://nextjs.org/docs/advanced-features/custom-server) is not currently supported.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Applied the changes. How should we proceed as the list grows?

Copy link
Contributor

Choose a reason for hiding this comment

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

When there's more than one item in this list, then I think we should take out the sentence we've added and replace it with a list like the Features list that's called "Not Currently Supported". I have to review the other SDK docs to confirm we don't already have a solution for this problem though.

Copy link
Contributor

Choose a reason for hiding this comment

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

I checked through the SDK docs and we don't have another method for documenting unsupported features that I could find, so going forward, when we have more than one unsupported feature, use the solution that I've proposed above.

@@ -15,3 +15,4 @@ Features:
- Automatic [Performance Monitoring](/product/performance/) for both the client and server, from version `6.5.0`

Under the hood the SDK relies on our [React SDK](/platforms/javascript/guides/react/) on the frontend and [Node SDK](/platforms/node) on the backend, which makes all features available in those SDKs also available in this SDK.
However, some Next.js features aren't currently supported, such as using a [custom server](https://nextjs.org/docs/advanced-features/custom-server).
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this placement is fine, but we shouldn't have a lead-in sentence saying "some" features aren't supported and then only name one feature. Suggest the following edit:

Suggested change
However, some Next.js features aren't currently supported, such as using a [custom server](https://nextjs.org/docs/advanced-features/custom-server).
However, using a [custom server](https://nextjs.org/docs/advanced-features/custom-server) is not currently supported.

@AbhiPrasad AbhiPrasad closed this Oct 14, 2021
@AbhiPrasad AbhiPrasad reopened this Oct 14, 2021
@iker-barriocanal iker-barriocanal merged commit 5fe07de into master Oct 15, 2021
@iker-barriocanal iker-barriocanal deleted the iker/nextjs-not-supported branch October 15, 2021 08:11
@github-actions github-actions bot locked and limited conversation to collaborators Oct 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants