docs: make 2.x the default version (#3369)

This commit is contained in:
Marvin Hagemeister
2025-09-09 14:36:51 +02:00
committed by GitHub
parent 2c315a9972
commit 79d8cfc3ed
109 changed files with 1589 additions and 1502 deletions
+35
View File
@@ -0,0 +1,35 @@
---
description: "Create a production build of your app"
---
When shipping an app to production, we can run a build step that optimizes
assets for consumption in the browser. This step can be invoked by running:
```sh Terminal
deno task build
# or
deno run -A dev.ts build
```
Once completed, it will have created a `_fresh` folder in the project directory
which contains the optimized assets.
> [info]: The `_fresh` folder should not be committed to git. Exclude it via
> `.gitignore`.
>
> ```gitignore .gitignore
> # Ignore fresh build directory
> _fresh/
> ```
## Running a production build
To run Fresh in production mode, run the `start` task:
```sh Terminal
deno task start
# or
deno serve -A _fresh/server.js
```
Fresh will automatically pick up the optimized assets in the `_fresh` directory.