File tree Expand file tree Collapse file tree 5 files changed +13
-7
lines changed
Expand file tree Collapse file tree 5 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 1818 - uses : actions/setup-node@v3
1919 with :
2020 node-version : " 18"
21- - uses : actions/cache@v2
21+ - uses : actions/cache@v3
2222 with :
2323 path : |
2424 node_modules
3737 - uses : actions/setup-node@v3
3838 with :
3939 node-version : " 18"
40- - uses : actions/cache@v2
40+ - uses : actions/cache@v3
4141 with :
4242 path : |
4343 node_modules
5959 - uses : actions/setup-node@v3
6060 with :
6161 node-version : " 18"
62- - uses : actions/cache@v2
62+ - uses : actions/cache@v3
6363 with :
6464 path : |
6565 node_modules
7979 - uses : actions/setup-node@v3
8080 with :
8181 node-version : " 18"
82- - uses : actions/cache@v2
82+ - uses : actions/cache@v3
8383 with :
8484 path : |
8585 node_modules
Original file line number Diff line number Diff line change 1+ ALGOLIA_API_KEY = xxxxxxxx
2+ ALGOLIA_APP_ID = yyyyyyyy
3+ ALGOLIA_INDEX_NAME = zzzzzzzz
Original file line number Diff line number Diff line change 1414.env.development.local
1515.env.test.local
1616.env.production.local
17+ .env
1718
1819npm-debug.log *
1920yarn-debug.log *
Original file line number Diff line number Diff line change 22// Note: type annotations allow type checking and IDEs autocompletion
33
44const { DOCUSAURUS_VERSION } = require ( "@docusaurus/utils" ) ;
5+ require ( "dotenv" ) . config ( ) ;
56
67/** @type {import('@docusaurus/types').Config } */
78const config = {
@@ -190,9 +191,9 @@ const config = {
190191 } ,
191192 ] ,
192193 algolia : {
193- apiKey : "441074cace987cbf4640c039ebed303c" ,
194- appId : "J0EABTYI1A" ,
195- indexName : "docusaurus-openapi" ,
194+ apiKey : process . env . ALGOLIA_API_KEY ,
195+ appId : process . env . ALGOLIA_APP_ID ,
196+ indexName : process . env . ALGOLIA_INDEX_NAME ,
196197 } ,
197198 announcementBar : {
198199 id : "announcementBar_1" ,
Original file line number Diff line number Diff line change 2828 "@mxenabled/docusaurus-plugin-openapi-docs" : " ^2.0.3" ,
2929 "@mxenabled/docusaurus-theme-openapi-docs" : " ^2.0.3" ,
3030 "clsx" : " ^1.1.1" ,
31+ "dotenv" : " ^17.3.1" ,
3132 "prism-react-renderer" : " ^2.1.0" ,
3233 "react" : " ^18.2.0" ,
3334 "react-dom" : " ^18.2.0"
You can’t perform that action at this time.
0 commit comments