Skip to content

Commit 5dc4727

Browse files
authored
refactor(create-docusaurus): add future.v4 flag to init templates (#10871)
1 parent b6d9fe2 commit 5dc4727

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

packages/create-docusaurus/templates/classic-typescript/docusaurus.config.ts

+5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ const config: Config = {
99
tagline: 'Dinosaurs are cool',
1010
favicon: 'img/favicon.ico',
1111

12+
// Future flags, see https://docusaurus.io/docs/api/docusaurus-config#future
13+
future: {
14+
v4: true, // Improve compatibility with the upcoming Docusaurus v4
15+
},
16+
1217
// Set the production url of your site here
1318
url: 'https://your-docusaurus-site.example.com',
1419
// Set the /<baseUrl>/ pathname under which your site is served

packages/create-docusaurus/templates/classic/docusaurus.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ const config = {
1414
tagline: 'Dinosaurs are cool',
1515
favicon: 'img/favicon.ico',
1616

17+
// Future flags, see https://docusaurus.io/docs/api/docusaurus-config#future
18+
future: {
19+
v4: true, // Improve compatibility with the upcoming Docusaurus v4
20+
},
21+
1722
// Set the production url of your site here
1823
url: 'https://your-docusaurus-site.example.com',
1924
// Set the /<baseUrl>/ pathname under which your site is served

0 commit comments

Comments
 (0)