Skip to content

Conversation

@ekzyis
Copy link
Member

@ekzyis ekzyis commented Oct 19, 2025

Description

This partially reverts commit 2a8085a.

I think it's okay to reenable the playground in dev only.

Additional context

I really want to replace all process.env.NODE_ENV === 'development' etc. with a constant like __DEV__ or __PROD__ but I also don't want to create conflicts for everyone everywhere just for aesthetics

Checklist

Are your changes backward compatible? Please answer below:

yes

On a scale of 1-10 how well and how have you QA'd this change and any features it might affect? Please answer below:

10. plugin is only added in dev and falsy values are filtered out since they would make Apollo throw

For frontend changes: Tested on mobile, light and dark mode? Please answer below:

n/a

Did you introduce any new environment variables? If so, call them out explicitly here:

no

Did you use AI for this? If so, how much did it assist you?

no


Note

Enable Apollo GraphQL landing page (Explorer) in dev-only by conditionally adding ApolloServerPluginLandingPageLocalDefault and removing the disabled plugin.

  • API/GraphQL (pages/api/graphql.js):
    • Add ApolloServerPluginLandingPageLocalDefault conditionally for process.env.NODE_ENV === 'development' with embedded dark-themed Explorer and persisted state.
    • Remove ApolloServerPluginLandingPageDisabled; filter falsy plugins with .filter(Boolean).

Written by Cursor Bugbot for commit 7bf3611. This will update automatically on new commits. Configure here.

@ekzyis ekzyis added the sndev label Oct 19, 2025
@ekzyis ekzyis force-pushed the playground-in-dev branch 2 times, most recently from 054fa5b to fda9783 Compare October 19, 2025 11:55
This partially reverts commit 2a8085a.
@ekzyis ekzyis force-pushed the playground-in-dev branch from fda9783 to 7bf3611 Compare October 19, 2025 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants