Skip to content

Commit 812dd99

Browse files
committed
fix: add DB host and env updates for the web for docker builds
1 parent 2090c3b commit 812dd99

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ services:
274274
- ./api/.env
275275
environment:
276276
AUTH_SERVER_URL: http://auth:${authPort}
277+
DB_HOST: db
277278
volumes:
278279
- ./api:/app
279280
- /app/node_modules
@@ -416,8 +417,8 @@ async function downloadRepo(repo, dest) {
416417
await downloadRepo(REPOS.web, dir);
417418

418419
writeEnv(dir, {
419-
VITE_AUTH_SERVER_URL: `http://localhost:${apiPort}`,
420-
VITE_API_URL: `http://localhost:${apiPort}`,
420+
VITE_AUTH_SERVER_URL: `http://localhost:${apiPort}/`,
421+
VITE_API_URL: `http://localhost:${apiPort}/`,
421422
PORT: webPort,
422423
});
423424
}

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-seamless",
3-
"version": "0.0.7",
3+
"version": "0.0.8",
44
"description": "The starter script for Seamless Auth",
55
"homepage": "https://github.com/fells-code/create-seamless#readme",
66
"bugs": {
@@ -33,4 +33,4 @@
3333
"@types/adm-zip": "^0.5.7",
3434
"@types/node": "^24.10.1"
3535
}
36-
}
36+
}

0 commit comments

Comments
 (0)