Skip to content

Commit 5acd30d

Browse files
authored
Fix internal links in workaround.mdx (#316)
1 parent 2b2880a commit 5acd30d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/pages/advanced/workaround.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#### WORKAROUND: Create one cache behavior per top-level file and folder in `public/` (AWS specific)
22

3-
As mentioned in the [Asset files](#asset-files) section, files in your app's `public/` folder are static and are uploaded to the S3 bucket. And requests for these files are handled by the S3 bucket, like so:
3+
As mentioned in the [Asset files](./architecture#asset-files) section, files in your app's `public/` folder are static and are uploaded to the S3 bucket. And requests for these files are handled by the S3 bucket, like so:
44

55
```
66
https://my-nextjs-app.com/favicon.ico
@@ -111,7 +111,7 @@ export function middleware(request: NextRequest) {
111111

112112
#### WORKAROUND: `NextServer` does not set cache headers for HTML pages
113113

114-
As mentioned in the [Server function](#server-lambda-function) section, the server function uses the `NextServer` class from Next.js' build output to handle requests. However, `NextServer` does not seem to set the correct `Cache Control` headers.
114+
As mentioned in the [Server function](./architecture#server-lambda-function) section, the server function uses the `NextServer` class from Next.js' build output to handle requests. However, `NextServer` does not seem to set the correct `Cache Control` headers.
115115

116116
To work around the issue, the server function checks if the request is for an HTML page, and sets the `Cache Control` header to:
117117

@@ -154,7 +154,7 @@ You can build the file path like this:
154154
path.join(process.cwd(), "posts", "my-post.md");
155155
```
156156

157-
As mentioned in the [Server function](#server-lambda-function) section, in a non-monorepo setup, the `server-function` bundle looks like:
157+
As mentioned in the [Server function](./architecture#server-lambda-function) section, in a non-monorepo setup, the `server-function` bundle looks like:
158158

159159
```
160160
.next/
@@ -201,4 +201,4 @@ Nextjs 13.4.13 refactored the middleware logic so that it no longer runs in the
201201
We've introduced a custom esbuild plugin to conditionally inject and override code to properly handle the breaking changes.
202202

203203
The default request handler is in `adapters/plugins/default.ts`
204-
When open-next needs to override that implementation due to NextJs breaking compatibility, the `createServerBundle` in `build.ts` determines the proper overrides to replace the code of the `default.ts` file.
204+
When open-next needs to override that implementation due to NextJs breaking compatibility, the `createServerBundle` in `build.ts` determines the proper overrides to replace the code of the `default.ts` file.

0 commit comments

Comments
 (0)