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

bug: content location is not configurable #33

Open
airtonix opened this issue Jan 24, 2024 · 0 comments
Open

bug: content location is not configurable #33

airtonix opened this issue Jan 24, 2024 · 0 comments

Comments

@airtonix
Copy link

I see that you've hardcoded where the content documents are assumed to be:

https://github.com/JulianCataldo/astro-content/blob/master/packages/server/setup.ts#L60-L62

it'd be amazing if that could part of the integration Settings type:

https://github.com/JulianCataldo/astro-content/blob/master/packages/types/user-config.ts#L3-L10

export interface UserConfig {
  /** **Default**: `/` */
  previewUrl?: string;
  /** **Default**: `'info'` */
  logLevel?: LogLevel;
  /** **Default**: `true` */
  gui?: boolean;
  /** **Default**: `/content` */
  contentSource?: string;
}
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