Skip to content

Commit 904a735

Browse files
committed
refactor: update runtime configuration file location and script reference
- Changed the directory for the runtime configuration file from /config to /assets in startup.sh. - Updated index.html to reference the new location of the runtime configuration script.
1 parent 0bb5ac9 commit 904a735

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scripts/startup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
set -e
33

44
# Create runtime config with environment variables
5-
mkdir -p /app/frontend/dist/config
6-
cat > /app/frontend/dist/config/runtime-config.js <<EOL
5+
mkdir -p /app/frontend/dist/assets
6+
cat > /app/frontend/dist/assets/runtime-config.js <<EOL
77
window.RUNTIME_CONFIG = {
88
CODER_URL: "${CODER_URL}"
99
};

src/frontend/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<title>Pad.ws</title>
1212
<link rel="icon" type="image/x-icon" href="/assets/images/favicon.png" />
13-
<script src="/config/runtime-config.js"></script>
13+
<script src="/assets/runtime-config.js"></script>
1414
</head>
1515

1616
<body>

0 commit comments

Comments
 (0)