fix: remove unnecessary config property in init script (#2915)
From what I can see, `fsRoutes` uses the `FreshConfig.root` option by default, so this property does not need to be specified. I also added some JSDoc for the `dir` option in `fsRoutes()` as I understood it's purpose.
This commit is contained in:
@@ -47,6 +47,12 @@ function isFreshFile<State>(mod: any): mod is FreshFsItem<State> {
|
||||
}
|
||||
|
||||
export interface FsRoutesOptions {
|
||||
/**
|
||||
* Parent directory for the `/routes` and `/islands` folders.
|
||||
*
|
||||
* By default, the `root` config option of the provided app is used.
|
||||
* @default app.config.root
|
||||
*/
|
||||
dir?: string;
|
||||
ignoreFilePattern?: RegExp[];
|
||||
loadRoute: (path: string) => Promise<unknown>;
|
||||
|
||||
Reference in New Issue
Block a user