www: change domain to usefresh.dev (#3831)
This commit is contained in:
@@ -144,7 +144,7 @@ for a `route`, as opposed to something like `http://localhost:8001/favicon.ico`.
|
||||
|
||||
### Example
|
||||
|
||||
Initiate a new Fresh project (`deno run -A -r https://fresh.deno.dev/`) and then
|
||||
Initiate a new Fresh project (`deno run -A -r https://usefresh.dev/`) and then
|
||||
create a `_middleware.ts` file in the `routes` folder like this:
|
||||
|
||||
```ts routes/_middleware.ts
|
||||
|
||||
@@ -42,7 +42,7 @@ To run the auto updater, run the following command from the root of your
|
||||
project:
|
||||
|
||||
```sh Terminal
|
||||
$ deno run -A -r https://fresh.deno.dev/update
|
||||
$ deno run -A -r https://usefresh.dev/update
|
||||
```
|
||||
|
||||
You will be prompted to confirm the changes that will be made to your project.
|
||||
|
||||
@@ -24,7 +24,7 @@ The purpose of the example app we're building here is to showcase the basic
|
||||
building blocks of an implementation. As such, it is limited in functionality
|
||||
and purposefully leaves out things like
|
||||
[password resets](https://supabase.com/docs/guides/auth/server-side/email-based-auth-with-pkce-flow-for-ssr),
|
||||
[proper error handling](https://fresh.deno.dev/docs/1.x/concepts/error-pages) as
|
||||
[proper error handling](https://usefresh.dev/docs/1.x/concepts/error-pages) as
|
||||
well as validating input form data. You can find the
|
||||
[full code here](https://github.com/morlinbrot/supa-fresh-pkce), where the
|
||||
missing functionality is implemented.
|
||||
@@ -226,7 +226,7 @@ we are writing next.
|
||||
|
||||
We can now write a middleware that will check the auth status of any request,
|
||||
guarding any protected routes. You can read up on middlewares and where to put
|
||||
them [in the docs](https://fresh.deno.dev/docs/1.x/concepts/middleware).
|
||||
them [in the docs](https://usefresh.dev/docs/1.x/concepts/middleware).
|
||||
|
||||
```ts routes/_middleware.ts
|
||||
import { FreshContext } from "$fresh/server.ts";
|
||||
|
||||
@@ -3,8 +3,8 @@ description: |
|
||||
Change the source directory to effectively manage your project.
|
||||
---
|
||||
|
||||
When you initialize a project with `deno run -A -r https://fresh.deno.dev`,
|
||||
you'll end up with a project like the following:
|
||||
When you initialize a project with `deno run -A -r https://usefresh.dev`, you'll
|
||||
end up with a project like the following:
|
||||
|
||||
```txt-files Project Structure
|
||||
<project root>
|
||||
|
||||
@@ -11,7 +11,7 @@ possibilities:
|
||||
3. the markdown is on a file
|
||||
|
||||
The following file uses
|
||||
[dynamic routing](https://fresh.deno.dev/docs/getting-started/dynamic-routes) to
|
||||
[dynamic routing](https://usefresh.dev/docs/getting-started/dynamic-routes) to
|
||||
handle the three cases. It's assumed this file is called `[slug].tsx`:
|
||||
|
||||
```ts routes/[slug].tsx
|
||||
|
||||
@@ -3,8 +3,8 @@ description: |
|
||||
Set the lang attribute in the <html> tag.
|
||||
---
|
||||
|
||||
When you initialize a project with `deno run -A -r https://fresh.deno.dev`,
|
||||
you'll end up with a `main.ts` like the following:
|
||||
When you initialize a project with `deno run -A -r https://usefresh.dev`, you'll
|
||||
end up with a `main.ts` like the following:
|
||||
|
||||
```ts main.ts
|
||||
/// <reference no-default-lib="true" />
|
||||
|
||||
@@ -3,8 +3,8 @@ description: |
|
||||
With a few tweaks one can use twind v1
|
||||
---
|
||||
|
||||
When you initialize a project with `deno run -A -r https://fresh.deno.dev`,
|
||||
you'll end up with a `main.ts` like the following:
|
||||
When you initialize a project with `deno run -A -r https://usefresh.dev`, you'll
|
||||
end up with a `main.ts` like the following:
|
||||
|
||||
```ts main.ts
|
||||
/// <reference no-default-lib="true" />
|
||||
|
||||
@@ -10,7 +10,7 @@ will scaffold out a new project with some example files to get you started.
|
||||
To create a new project, run:
|
||||
|
||||
```sh Terminal
|
||||
deno run -A -r https://fresh.deno.dev
|
||||
deno run -A -r https://usefresh.dev
|
||||
cd fresh-project
|
||||
deno task start
|
||||
```
|
||||
|
||||
@@ -13,7 +13,7 @@ Fresh is organized as a monorepo with multiple packages:
|
||||
- **`packages/plugin-tailwindcss-v3/`** - Tailwind CSS v3 plugin
|
||||
- **`packages/init/`** - Project scaffolding tool
|
||||
- **`packages/update/`** - Fresh update utilities
|
||||
- **`www/`** - Documentation website (fresh.deno.dev)
|
||||
- **`www/`** - Documentation website (usefresh.dev)
|
||||
|
||||
## Getting Started
|
||||
|
||||
|
||||
Reference in New Issue
Block a user