Skip to content

Commit f121323

Browse files
authored
docs: add links to read function (#13154)
closes #11871
1 parent 911cd12 commit f121323

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

documentation/docs/25-build-and-deploy/80-adapter-netlify.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,6 @@ Additionally, you can add your own Netlify functions by creating a directory for
113113

114114
You can't use `fs` in edge deployments.
115115

116-
You _can_ use it in serverless deployments, but it won't work as expected, since files are not copied from your project into your deployment. Instead, use the `read` function from `$app/server` to access your files. `read` does not work inside edge deployments (this may change in future).
116+
You _can_ use it in serverless deployments, but it won't work as expected, since files are not copied from your project into your deployment. Instead, use the [`read`]($app-server#read) function from `$app/server` to access your files. `read` does not work inside edge deployments (this may change in future).
117117

118118
Alternatively, you can [prerender](page-options#prerender) the routes in question.

documentation/docs/25-build-and-deploy/90-adapter-vercel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,6 @@ Projects created before a certain date may default to using an older Node versio
173173

174174
You can't use `fs` in edge functions.
175175

176-
You _can_ use it in serverless functions, but it won't work as expected, since files are not copied from your project into your deployment. Instead, use the `read` function from `$app/server` to access your files. `read` does not work inside routes deployed as edge functions (this may change in future).
176+
You _can_ use it in serverless functions, but it won't work as expected, since files are not copied from your project into your deployment. Instead, use the [`read`]($app-server#read) function from `$app/server` to access your files. `read` does not work inside routes deployed as edge functions (this may change in future).
177177

178178
Alternatively, you can [prerender](page-options#prerender) the routes in question.

documentation/docs/30-advanced/50-server-only-modules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The [`$env/static/private`]($env-static-private) and [`$env/dynamic/private`]($e
1010

1111
## Server-only utilities
1212

13-
The [`$app/server`]($app-server) module, which contains a `read` function for reading assets from the filesystem, can likewise only be imported by code that runs on the server.
13+
The [`$app/server`]($app-server) module, which contains a [`read`]($app-server#read) function for reading assets from the filesystem, can likewise only be imported by code that runs on the server.
1414

1515
## Your modules
1616

0 commit comments

Comments
 (0)