Feature Request
Is your feature request related to a problem? Please describe.
Currently, ApolloServerPluginLandingPageProductionDefault supports theme configuration (light/dark mode) via the document option, but ApolloServerPluginLandingPageLocalDefault does not offer this capability.
Describe the solution you'd like
I would like ApolloServerPluginLandingPageLocalDefault to support the same document configuration option as ApolloServerPluginLandingPageProductionDefault:
Example usage:
plugins: [
ApolloServerPluginLandingPageLocalDefault({
initialState: {
displayOptions: {
theme: 'dark', // or 'light'
}
},
}),
]
Describe alternatives you've considered
- Using Production Landing Page in Development: I specifically do not want to rely on production landing page as it require to login to studio apollo graphql, while I only use this page for local development.
Additional context
- The production landing page already has this feature implemented, suggesting the underlying infrastructure exists
- This appears to be a straightforward feature parity issue rather than a fundamental architectural limitation
Feature Request
Is your feature request related to a problem? Please describe.
Currently,
ApolloServerPluginLandingPageProductionDefaultsupports theme configuration (light/dark mode) via thedocumentoption, butApolloServerPluginLandingPageLocalDefaultdoes not offer this capability.Describe the solution you'd like
I would like
ApolloServerPluginLandingPageLocalDefaultto support the samedocumentconfiguration option asApolloServerPluginLandingPageProductionDefault:Example usage:
Describe alternatives you've considered
Additional context