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

[v1] docs should showcase alternative mesh configs without defineConfig #7325

Open
enisdenjo opened this issue Jul 22, 2024 · 0 comments
Open

Comments

@enisdenjo
Copy link
Collaborator

When running mesh-serve with npx (or the future single-bin mesh-serve), the defineConfig (or any other export) is not available. In such cases, defining the config should be something like:

// mesh.config.ts

import type { MeshServeCLIConfig } from '@graphql-mesh/serve-cli';

export const serveConfig = {
  supergraph: 'hi.graphql',
} satisfies MeshServeCLIConfig;

or no type

// mesh.config.js

export const serveConfig = {
  supergraph: 'hi.graphql',
};
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

No branches or pull requests

1 participant