Skip to content

Commit 7c3802e

Browse files
committed
deployment config change from pm2
1 parent 17d80a7 commit 7c3802e

File tree

16 files changed

+39
-2907
lines changed

16 files changed

+39
-2907
lines changed

.github/workflows/main_product-docs-prod.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,21 @@ jobs:
2121
with:
2222
node-version: '22.x'
2323

24+
- name: Cache Node.js dependencies
25+
uses: actions/cache@v3
26+
with:
27+
path: ~/.npm
28+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
29+
restore-keys: |
30+
${{ runner.os }}-node-
31+
2432
- name: Install dependencies and build site
2533
run: |
2634
npm ci
2735
npm run build
2836
env:
2937
NODE_OPTIONS: "--max-old-space-size=16384"
38+
DOCUSAURUS_URL: "https://product-docs-prod-hdhbe6h2hddcghd7.eastus2-01.azurewebsites.net"
3039

3140
- name: Install zip (if needed)
3241
run: sudo apt-get update && sudo apt-get install -y zip

docusaurus.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const config = {
1616
// Set the production url of your site here
1717
// Use environment variable for dynamic URL configuration
1818
projectName: 'docs',
19-
url: process.env.RENDER_EXTERNAL_URL || 'http://localhost:3000',
19+
url: process.env.APP_EXTERNAL_URL || 'http://localhost:3000',
2020
// Set the /<baseUrl>/ pathname under which your site is served
2121
baseUrl: '/',
2222

ecosystem.config.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)