Skip to content
This repository was archived by the owner on Dec 16, 2024. It is now read-only.
This repository was archived by the owner on Dec 16, 2024. It is now read-only.

bug: content location is not configurable #33

@airtonix

Description

@airtonix

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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions