File tree Expand file tree Collapse file tree 4 files changed +12
-5
lines changed Expand file tree Collapse file tree 4 files changed +12
-5
lines changed Original file line number Diff line number Diff line change
1
+ # add the project root here
2
+ PUBLIC_SITE_ROOT=http://localhost:3000
Original file line number Diff line number Diff line change 52
52
- name : Checkout code
53
53
# Checks out the repository code.
54
54
uses : actions/checkout@v4
55
+
56
+ - name : Load env file
57
+ run : echo "${{ secrets.APPLICATION_ENV_FILE }}" > .env
55
58
56
59
- name : Setup Node.js ${{ inputs.node-version }}
57
60
# Sets up NodeJS environment
Original file line number Diff line number Diff line change 6
6
# development files
7
7
.docusaurus /
8
8
9
+ # env
10
+ .env
11
+ .env. *
12
+ ! .env.template
13
+
9
14
# production
10
15
/build
11
16
* .tgz
12
17
13
18
# misc
14
19
.DS_Store
15
- .env.local
16
- .env.development.local
17
- .env.test.local
18
- .env.production.local
19
20
20
21
npm-debug.log *
21
22
yarn-debug.log *
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ const config = {
38
38
favicon : 'img/favicon.ico' ,
39
39
40
40
// Set the production url of your site here
41
- url : 'https ://react-chatbotify.com ',
41
+ url : process . env . PUBLIC_SITE_ROOT || 'http ://localhost:3000 ',
42
42
// Set the /<baseUrl>/ pathname under which your site is served
43
43
// For GitHub pages deployment, it is often '/<projectName>/'
44
44
baseUrl : '/docs' ,
@@ -89,6 +89,7 @@ const config = {
89
89
logo : {
90
90
alt : 'React ChatBotify Logo' ,
91
91
src : 'img/react-chatbotify.png' ,
92
+ href : process . env . PUBLIC_SITE_ROOT || '/' ,
92
93
} ,
93
94
items : [
94
95
{
You can’t perform that action at this time.
0 commit comments