Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
9866f3ce
Unverified
Commit
9866f3ce
authored
May 25, 2024
by
Sayakie
Committed by
GitHub
May 25, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: minor syntax typo for missed `const` (#66154)
parent
e502b07b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
02-version-15.mdx
...-building-your-application/11-upgrading/02-version-15.mdx
+3
-3
No files found.
docs/02-app/01-building-your-application/11-upgrading/02-version-15.mdx
View file @
9866f3ce
...
@@ -63,10 +63,10 @@ export default async function RootLayout() {
...
@@ -63,10 +63,10 @@ export default async function RootLayout() {
## Route Handlers
## Route Handlers
`GET`
functions
in
[
Route
Handlers
](
/
docs
/
app
/
api
-
reference
/
file
-
conventions
/
route
)
are
no
longer
cached
by
default
.
To
opt
`GET`
methods
into
caching
,
you
can
use
a
[
route
config
option
](
/
docs
/
app
/
api
-
reference
/
file
-
conventions
/
route
-
segment
-
config
)
such
as
`export dynamic = 'force-static'`
in
your
Route
Handler
file
.
`GET`
functions
in
[
Route
Handlers
](
/
docs
/
app
/
api
-
reference
/
file
-
conventions
/
route
)
are
no
longer
cached
by
default
.
To
opt
`GET`
methods
into
caching
,
you
can
use
a
[
route
config
option
](
/
docs
/
app
/
api
-
reference
/
file
-
conventions
/
route
-
segment
-
config
)
such
as
`export
const
dynamic = 'force-static'`
in
your
Route
Handler
file
.
```js filename="app/api/route.js
```js filename="app/api/route.js
"
export dynamic = 'force-static'
export
const
dynamic = 'force-static'
export async function GET() {}
export async function GET() {}
```
```
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment