chore: Update links (#2956)
This commit updates several links which are outdated and now redirect to different URLs on the updated Deno website and documentation. There are a few dozen instances of URLs starting with `https:://deno.land/x` and `https:://deno.land/std`. I left these alone since they are dependencies. Would it make sense to update these from the versions hosted at `deno.land` to their JSR equivalents, since that is the new and preferred location of the Deno Standard Library packages as well as other JavaScript/TypeScript packages used by Deno projects? For example, the latest version of the Deno Standard Library is now hosted at `https://jsr.io/@std` instead of `https://deno.land/std`.  --------- Co-authored-by: Marvin Hagemeister <hello@marvinh.dev>
This commit is contained in:
co-authored by
Marvin Hagemeister
parent
63cb208f8b
commit
107c25b79a
@@ -24,7 +24,7 @@ The [documentation](https://fresh.deno.dev/docs/introduction) is available on
|
||||
|
||||
## 🚀 Getting started
|
||||
|
||||
Install the latest [Deno CLI](https://deno.land/) version.
|
||||
Install the latest [Deno CLI](https://deno.com/) version.
|
||||
|
||||
You can scaffold a new project by running the Fresh init script. To scaffold a
|
||||
project run the following:
|
||||
|
||||
@@ -167,10 +167,10 @@ The `basePath` is also applied to the `src` and `srcset` attribute of
|
||||
|
||||
## Server
|
||||
|
||||
Now that Deno has stabilized [Deno.serve](https://deno.land/api?s=Deno.serve)
|
||||
and Fresh has switched to using this API, all server configuration options are
|
||||
embedded in `server` inside the `FreshConfig`. The fully expanded set of
|
||||
parameters looks like this:
|
||||
Now that Deno has stabilized
|
||||
[Deno.serve](https://docs.deno.com/api/deno/~/Deno.serve) and Fresh has switched
|
||||
to using this API, all server configuration options are embedded in `server`
|
||||
inside the `FreshConfig`. The fully expanded set of parameters looks like this:
|
||||
|
||||
```ts
|
||||
server: {
|
||||
|
||||
@@ -55,6 +55,6 @@ respectively:
|
||||
Finally a **`static/`** folder is created that contains static files that are
|
||||
automatically served "as is". [Learn more about static files][static-files].
|
||||
|
||||
[import-map]: https://docs.deno.com/runtime/manual/basics/import_maps
|
||||
[task-runner]: https://deno.land/manual/tools/task_runner
|
||||
[import-map]: https://docs.deno.com/runtime/fundamentals/modules
|
||||
[task-runner]: https://docs.deno.com/runtime/reference/cli/task
|
||||
[static-files]: ../concepts/static-files
|
||||
|
||||
@@ -20,5 +20,5 @@ nice with Deno. Documentation for this can also be found
|
||||
[in the manual][manual-editors].
|
||||
|
||||
[deno-deploy]: https://deno.com/deploy
|
||||
[manual-installation]: https://deno.land/manual/getting_started/installation
|
||||
[manual-editors]: https://deno.land/manual/getting_started/setup_your_environment
|
||||
[manual-installation]: https://docs.deno.com/runtime/getting_started/installation
|
||||
[manual-editors]: https://docs.deno.com/runtime/getting_started/setup_your_environment
|
||||
|
||||
@@ -61,4 +61,4 @@ If you now visit http://localhost:8000, you can see the running project. Try
|
||||
change some of the text in `routes/index.tsx` and see how the page updates
|
||||
automatically when you save the file.
|
||||
|
||||
[--watch]: https://deno.land/manual/getting_started/command_line_interface#watch-mode
|
||||
[--watch]: https://docs.deno.com/runtime/getting_started/command_line_interface/#watch-mode
|
||||
|
||||
+2
-1
@@ -603,7 +603,8 @@ Started" guide here: https://fresh.deno.dev/docs/getting-started
|
||||
|
||||
### Usage
|
||||
|
||||
Make sure to install Deno: https://deno.land/manual/getting_started/installation
|
||||
Make sure to install Deno:
|
||||
https://docs.deno.com/runtime/getting_started/installation
|
||||
|
||||
Then start the project in development mode:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user