docs: update for vite (#3308)

Update docs for vite
This commit is contained in:
Marvin Hagemeister
2025-09-02 10:45:27 +02:00
committed by GitHub
parent 6ddc0fbbcb
commit 9e58af7a5c
18 changed files with 372 additions and 318 deletions
-9
View File
@@ -16,15 +16,6 @@ const app = new App()
.use(staticFiles());
```
The path to the static file directory can be customized on the
[`Builder` class](/docs/canary/concepts/builder) inside your `dev.ts` file.
```ts dev.ts
import { Builder } from "fresh/dev";
const builder = new Builder({ staticDir: "path/to/staticDir" });
```
## Caching headers
By default, Fresh adds caching headers for the `src` and `srcset` attributes on