Home / Type/ FileSystemServeOptions Type — vite Architecture

FileSystemServeOptions Type — vite Architecture

Architecture documentation for the FileSystemServeOptions type/interface in index.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  6837ce2f_a27c_f8f4_74c9_830965ef9593["FileSystemServeOptions"]
  a423a1ed_f7d8_0eb5_9b8f_ddfa7fa8147e["index.ts"]
  6837ce2f_a27c_f8f4_74c9_830965ef9593 -->|defined in| a423a1ed_f7d8_0eb5_9b8f_ddfa7fa8147e
  style 6837ce2f_a27c_f8f4_74c9_830965ef9593 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/vite/src/node/server/index.ts lines 224–251

export interface FileSystemServeOptions {
  /**
   * Strictly restrict file accessing outside of allowing paths.
   *
   * Set to `false` to disable the warning
   *
   * @default true
   */
  strict?: boolean

  /**
   * Restrict accessing files outside the allowed directories.
   *
   * Accepts absolute path or a path relative to project root.
   * Will try to search up for workspace root by default.
   */
  allow?: string[]

  /**
   * Restrict accessing files that matches the patterns.
   *
   * This will have higher priority than `allow`.
   * picomatch patterns are supported.
   *
   * @default ['.env', '.env.*', '*.{crt,pem}', '**\/.git/**']
   */
  deny?: string[]
}

Frequently Asked Questions

What is the FileSystemServeOptions type?
FileSystemServeOptions is a type/interface in the vite codebase, defined in packages/vite/src/node/server/index.ts.
Where is FileSystemServeOptions defined?
FileSystemServeOptions is defined in packages/vite/src/node/server/index.ts at line 224.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free